#13255: Replace some deprecated python functions in sage/misc
-------------------------------------+-------------------------------------
       Reporter:  aapitzsch          |        Owner:  jason
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.2
      Component:  misc               |   Resolution:
       Keywords:  python3            |    Merged in:
        Authors:  André Apitzsch     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/aapitzsch/ticket/13255           |  ecc62ecd400221f880903dce69187b51994d01b7
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by aapitzsch):

 * status:  needs_work => needs_review


Comment:

 Replying to [comment:18 wluebbe]:
 > I had a look at the patch "trac 13255: replace some deprecated python
 functions in sage/misc".
 >
 > There are about 51 affected modules. 4 of them have a new line {{{from
 __future__ import print_function}}}.
 >
 > But there are also modules with the new function {{{print()}}} but no
 {{{from __future__}}}. An example is
 {{{/src/sage/misc/attached_files.py}}}.
 >
 > How can this work?
 >

 In these cases it's still the print statement and not the function that is
 used. The parentheses are ignored like in
 {{{
 sage: a = (5)
 sage: a
 5
 }}}
 so in most cases you can write
 {{{print("some string")}}} instead of {{{print "some string"}}} without
 using {{{from __future__}}}

--
Ticket URL: <http://trac.sagemath.org/ticket/13255#comment:22>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to