#15980: Meta-ticket for Python 3.3+ preparation - stage 1
----------------------------+----------------------------
   Reporter:  wluebbe       |            Owner:
       Type:  enhancement   |           Status:  new
   Priority:  major         |        Milestone:  sage-6.2
  Component:  distribution  |         Keywords:  python3
  Merged in:                |          Authors:
  Reviewers:                |  Report Upstream:  N/A
Work issues:                |           Branch:
     Commit:                |     Dependencies:
   Stopgaps:                |
----------------------------+----------------------------
 This ticket tracks a number of other tickets that relate to various tasks
 to prepare Sage code for Python 3.
 [[br]]
 The following table lists those fixers from
 [[http://docs.python.org/2.7/library/2to3.html?highlight=2to3#|2to3]]
 that are applicable for stage 1.


 //stage 1// includes those 2to3 fixers that produce code which can run on
 Python 2.7 (possibly using some
 
[[http://docs.python.org/2.7/library/__future__.html?highlight=__future__#__future__|from
 __future__ import ...]]
 or
 
[[http://docs.python.org/2.7/library/future_builtins.html?highlight=future#future_builtins|from
 future_builtins import ...]]).
 The code will usually not run on Python 3.
 [[br]]

 //stage 2// has those 2to3 fixers (and possibly others) that produce code
 which can run on Python 3 (more precisely Python 3.3+).
 The code can run on Python 2 only with the support of imported
 "compatibility" libraries.
 [[br]]

 After completion of stage 1 and 2 Sage should have a single, common code
 base for Python 2.7 and Python 3.3+.


 ||No. ||2to3 fixer ||see ticket ||Comment ||
 ||  1||apply       ||none       ||Nothing to change  ||
 ||  3||buffer      ||none       ||Nothing to change  ||
 ||  4||callable    ||none       ||No need to change (reintroduced in
 Python 3.2) ||
 ||  5||dict        ||TBD        ||about 755 changes; details see ticket ||
 ||  6||except      ||TBD        ||about 128 changes; details see ticket ||
 || 11||funcattr    ||TBD        ||about 18 changes; since Py2.6 compatible
 fcts available ||
 || 12||future      ||none       ||do NOT run, as we want to keep {{{from
 __future__ import xxx}}} ||
 || 13||getcwdu     ||none       ||Nothing to change  ||
 || 14||has_key     ||ticket:15784 ||Nothing to change, since already done
 ||
 || 15||idioms      ||TBD        ||about 333 changes; details see ticket ||
 || 16||import      ||TBD        ||about 2,252 changes; with {{{from
 __future__ import absolute_import}}}, details see ticket ||
 || 19||input       ||none       ||Nothing to change  ||
 || 20||intern      ||none       ||Nothing to change  ||
 || 21||isinstance  ||none       ||Nothing to change  ||
 || 27||methodattrs ||TBD        ||about 19 changes; since Py2.6 compatible
 fcts available ||
 || 28||ne          ||ticket:15734 ||Nothing to change, since already done
 ||
 || 31||numliterals ||TBD        ||about 2 changes; details see ticket ||
 || 32||operator    ||none       ||Nothing to change  ||
 || 33||paren       ||TBD        ||about 3 changes; details see ticket ||
 || 34||print       ||TBD        ||about 1,172 changes; with {{{from
 __future__ import print_function}}}, details see ticket ||
 || 35||raise       ||TBD        ||about 3,187 changes; details see ticket
 ||
 || 38||renames     ||TBD        ||about 5 changes; details see ticket ||
 || 39||repr        ||TBD        ||about 7 changes; details see ticket ||
 || 40||future      ||none       ||do NOT run, as it is mere style change
 ||
 || 41||standard_error ||none    ||Nothing to change  ||
 || 42||sys_exc     ||none       ||Nothing to change  ||
 || 43||throw       ||none       ||Nothing to change  ||
 || 44||tuple_params ||TBD       ||about 68 changes; details see ticket ||
 || 45||types       ||TBD        ||about 4 changes; details see ticket ||
 || 48||ws_comma    ||none       ||do NOT run; about 13,049 changes; just
 to enhance readability and PEP8 compliance ||
 || 50||throw       ||none       ||Nothing to change  ||
 ||   ||            ||           ||the following changes do not relate to
 2to3 ||
 || 61||divison     ||TBD        ||up to 410 modules; with {{{from
 __future__ import division}}}, details see ticket ||

 * Note 1: The //No.// in the above table is an enumeration of the fixers
 of {{{lib2to3/fixes/*}}}.
 * Note 2: No. starting with denote fixers not included in
 {{{lib2to3/fixes/*}}}.

--
Ticket URL: <http://trac.sagemath.org/ticket/15980>
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