Opened 9 years ago

Closed 5 years ago

Last modified 4 years ago

#16081 closed enhancement (wontfix)

Python3 : Test ticket for range()

Reported by: Wilfried Luebbe Owned by:
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: python3 Keywords: python3
Cc: Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: #16457 Stopgaps:

Status badges

Description (last modified by Frédéric Chapoton)

This ticket is used for doctesting the Python 3 compatibility of range(). It is not a real ticket and should not be merged.

Python 3 preparation: "xrange()" is gone and "range()" becomes an iterator

The tool 2to3 renames xrange() to range() and wraps existing range() usages with list().
But the code has to depend on the Python version!

There are 293 effected modules.

This ticket is tracked as a dependency of meta-ticket ticket:16052.

Change History (27)

comment:1 Changed 9 years ago by Wilfried Luebbe

Type: defectenhancement

comment:2 Changed 9 years ago by For batch modifications

Milestone: sage-6.2sage-6.3

comment:3 Changed 8 years ago by aapitzsch

Dependencies: #16457

I moved most of the renaming part to #16457.

comment:4 Changed 8 years ago by For batch modifications

Milestone: sage-6.3sage-6.4

comment:5 Changed 7 years ago by Jeroen Demeyer

Component: distributionpython3

comment:6 Changed 6 years ago by Frédéric Chapoton

see #21375 for a step in this direction

comment:7 Changed 6 years ago by Frédéric Chapoton

see #21460 for another small step

comment:8 Changed 6 years ago by Frédéric Chapoton

Milestone: sage-6.4sage-7.4

comment:9 Changed 6 years ago by Frédéric Chapoton

see #21677 for another step

comment:10 Changed 6 years ago by Frédéric Chapoton

Milestone: sage-7.4sage-7.6

comment:11 Changed 6 years ago by Frédéric Chapoton

Cc: Jeroen Demeyer Travis Scrimshaw Jori Mäntysalo added
Milestone: sage-7.6sage-duplicate/invalid/wontfix
Status: newneeds_review
Last edited 6 years ago by Frédéric Chapoton (previous) (diff)

comment:12 Changed 6 years ago by Frédéric Chapoton

Cc: Jeroen Demeyer Travis Scrimshaw Jori Mäntysalo removed
Milestone: sage-duplicate/invalid/wontfixsage-7.6
Status: needs_reviewneeds_work

sorry, I did a wrong move here, this is probably not yet ready to be closed

comment:13 Changed 6 years ago by Frédéric Chapoton

Branch: u/chapoton/test_branch_for_range
Commit: 505ce41e40a6006e445c32e12f5a4be6b85fc252

here is a branch, NOT TO BE MERGED, to let the patchbots run and detect remaining problems


New commits:

505ce41py3 : test branch for range !!! DO NOT MERGE !!!

comment:14 Changed 6 years ago by Frédéric Chapoton

Milestone: sage-7.6sage-duplicate/invalid/wontfix

comment:15 Changed 6 years ago by Frédéric Chapoton

see #22521 for one step in this direction

comment:16 Changed 6 years ago by Frédéric Chapoton

another step in #22734

comment:17 Changed 6 years ago by Frédéric Chapoton

Description: modified (diff)
Summary: Python 3 preparation: "xrange()" is gone and "range()" becomes an iteratorPython3 : Test ticket for range()

comment:18 Changed 6 years ago by Frédéric Chapoton

Description: modified (diff)

comment:19 Changed 6 years ago by Frédéric Chapoton

next iteration in #22779

comment:20 Changed 6 years ago by Frédéric Chapoton

next step in #22816

comment:21 Changed 6 years ago by Frédéric Chapoton

next step in #22972

comment:22 Changed 6 years ago by Salvatore Stella

Matrices here #23107

comment:23 Changed 5 years ago by Frédéric Chapoton

I have just run the patchbot. There is still a lot of things to be done here.

comment:24 Changed 5 years ago by Frédéric Chapoton

next in #24249

comment:25 Changed 5 years ago by Frédéric Chapoton

next step in #24569

comment:26 Changed 5 years ago by Erik Bray

Resolution: wontfix
Status: needs_workclosed

Going ahead and closing (unless you disagree) since it's not a real change to commit. There aren't too many range-related issues remaining (and those that do remain are mostly in classes/functions that should accept range objects as arguments but currently don't).

comment:27 Changed 4 years ago by Frédéric Chapoton

Branch: u/chapoton/test_branch_for_range
Commit: 505ce41e40a6006e445c32e12f5a4be6b85fc252
Note: See TracTickets for help on using tickets.