Changes between Version 18 and Version 19 of Ticket #15980


Ignore:
Timestamp:
12/08/15 08:46:50 (5 years ago)
Author:
jdemeyer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15980 – Description

    v18 v19  
    11This ticket tracks a number of other tickets that relate to various tasks to prepare Sage code for Python 3.
    22[[br]]
    3 The following table lists those fixers from [[http://docs.python.org/2.7/library/2to3.html?highlight=2to3#|2to3]]
    4 that are applicable for stage 1.
     3The following table lists those fixers from [[http://docs.python.org/2.7/library/2to3.html?highlight=2to3#|2to3]] that are applicable for stage 1.
    54
     5//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.
    66
    7 //stage 1// includes those 2to3 fixers that produce code which can run on Python 2.7 (possibly using some
    8 [[http://docs.python.org/2.7/library/__future__.html?highlight=__future__#__future__|from __future__ import ...]]
    9 or [[http://docs.python.org/2.7/library/future_builtins.html?highlight=future#future_builtins|from future_builtins import ...]]).
    10 The code will usually not run on Python 3.
    11 [[br]]
    12 
    13 //stage 2// has those 2to3 fixers (and possibly others) that produce code which can run on Python 3 (more precisely Python 3.3+).
    14 The code can run on Python 2 only with the support of imported "compatibility" libraries.
    15 [[br]]
    16 Stage 2 is now meta-ticket ticket:16052.
     7//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. Stage 2 is now meta-ticket #16052.
    178
    189After completion of stage 1 and 2 Sage should have a single, common code base for Python 2.7 and Python 3.3+.
    19 
    2010
    2111||No. ||2to3 fixer ||see ticket ||Comment ||
     
    3121|| 14||has_key     ||#15784 ||Nothing to change, since already done  ||
    3222|| 15||idioms      ||#15984 ||about 145 py&pyx modules; details see ticket ||
    33 || 16||import      ||#15985 ||about 568 py modules; with {{{from __future__ import absolute_import}}}, details see ticket ||
     23|| 16||import      ||#15985 ||about 568 py modules; with {{{from __future__ import absolute_import}}}||
    3424|| 18||imports2    ||none       ||Nothing to change  ||
    3525|| 19||input       ||none       ||Nothing to change  ||
     
    3828|| 27||methodattrs ||#15986 ||7 py&pyx modules; since Py2.6 compatible fcts available ||
    3929|| 28||ne          ||#15734 ||Nothing to change, since already done  ||
    40 ||29a||next        ||ticket:16075 ||about 84 modules; details see ticket ||
     30||29a||next        ||#16075 ||about 84 modules; details see ticket ||
    4131|| 31||numliterals ||moved      ||moved ticket:15987 to stage 2 ||
    4232|| 32||operator    ||none       ||Nothing to change  ||