Opened 3 years ago

Last modified 4 weeks ago

#16052 new enhancement

Meta-ticket for Python 3.3+ preparation (sage library) - stage 2

Reported by: wluebbe Owned by:
Priority: major Milestone: sage-8.0
Component: python3 Keywords: python3
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by chapoton)

This meta-ticket tracks those tickets for changing the Sage library that did not go into stage 1 (ticket:15980).

Some reasons for assigning tasks to stage 2:

  • The code can run on Python 2 only with the support of imported "compatibility" libraries. [copied from description] Maybe we have to check the licenses of the used compatibility libraries.
  • The tasks are usually more complicated. The approach may not be obvious or uncontroversial.
  • To make progress we need a Python 3.3 test environment for them.

This ticket is referenced by the meta-ticket ticket:15530

No. 2to3 fixer see ticket Comment
2basestring #16064 about 27 modules
5dict #15981 about 227 py modules
7exec #16065 6 modules
8execfile #16066 2 modules
17imports #16069 about 39 modules
22itertools_import #16070 about 12 modules
23itertools #16071 about 20 modules
24long #16072 about 72 modules
25map #16073 about 171 modules; (from future_builtins import map ?)
26metaclass #16074 about 30 modules
29next #18802 about 15 py modules
30nonzero #16076 about 25 modules
31numliterals #15987, #17808 oct and long literals
35braise traceback#18799 about 3 py modules
36raw_input #16077 3 modules
46unicode #16079, #14153 lots of modules? (from __future__ import unicode_literals ?)
47urllib #16080 about 16 modules
49xrange #16081 about 293 modules changes
51zip #16082 Fixed (kept as a watchdog ticket)

The following changes do not relate to 2to3:

71type() #16085 about 161 modules; different values of type()function
72write() #16086 about 79 modules; in Py3 the write() function has a return value
73traceback #16088 about ?? modules; tracebacks can look different
74file-to-open #16097 about 20 modules; replace builtin file() by open()

Change History (17)

comment:1 Changed 3 years ago by wluebbe

  • Description modified (diff)

comment:2 Changed 3 years ago by wluebbe

  • Description modified (diff)

comment:3 Changed 3 years ago by wluebbe

  • Description modified (diff)

comment:4 Changed 3 years ago by wluebbe

  • Description modified (diff)

Moved ticket:15981 (fix_dict) to stage 2.

comment:5 Changed 3 years ago by wluebbe

  • Description modified (diff)

Moved ticket:15987 (fix_literals) to stage 2.

comment:6 Changed 3 years ago by ppurka

Is it true that this stage 2 depends on the modifications already made to stage 1? Then perhaps we should put #15980 in the dependencies field of the ticket.

comment:7 Changed 3 years ago by wluebbe

  • Description modified (diff)

Stage 2 does not depend on stage 1. The tickets of stage 1 could be solved after stage 2 tickets. They are usually improvements of Py2 code (without relying on separate "compatibility layer").

Both stage 1 and stage 2 are tracked as dependencies of the meta-ticket ticket:15530.

comment:8 Changed 3 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:9 Changed 3 years ago by wluebbe

  • Description modified (diff)

Moved ticket:16067 and ticket:16078 to stage 1 (meta ticket:15980).

comment:10 Changed 3 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4

comment:11 Changed 2 years ago by wluebbe

  • Description modified (diff)

comment:12 Changed 2 years ago by wluebbe

  • Description modified (diff)

comment:13 Changed 20 months ago by jdemeyer

  • Description modified (diff)

comment:14 Changed 15 months ago by jdemeyer

  • Component changed from distribution to python3

comment:15 Changed 12 months ago by jdemeyer

  • Description modified (diff)

comment:16 Changed 2 months ago by chapoton

  • Milestone changed from sage-6.4 to sage-8.0

comment:17 Changed 4 weeks ago by chapoton

  • Description modified (diff)
Note: See TracTickets for help on using tickets.