#16081 closed enhancement (wontfix)
Python3 : Test ticket for range()
Reported by:  Wilfried Luebbe  Owned by:  

Priority:  major  Milestone:  sageduplicate/invalid/wontfix 
Component:  python3  Keywords:  python3 
Cc:  Merged in:  
Authors:  Reviewers:  
Report Upstream:  N/A  Work issues:  
Branch:  Commit:  
Dependencies:  #16457  Stopgaps: 
Description (last modified by )
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 metaticket ticket:16052.
Change History (27)
comment:1 Changed 9 years ago by
Type:  defect → enhancement 

comment:2 Changed 9 years ago by
Milestone:  sage6.2 → sage6.3 

comment:3 Changed 8 years ago by
Dependencies:  → #16457 

comment:4 Changed 8 years ago by
Milestone:  sage6.3 → sage6.4 

comment:5 Changed 7 years ago by
Component:  distribution → python3 

comment:8 Changed 6 years ago by
Milestone:  sage6.4 → sage7.4 

comment:10 Changed 6 years ago by
Milestone:  sage7.4 → sage7.6 

comment:11 Changed 6 years ago by
Cc:  Jeroen Demeyer Travis Scrimshaw Jori Mäntysalo added 

Milestone:  sage7.6 → sageduplicate/invalid/wontfix 
Status:  new → needs_review 
comment:12 Changed 6 years ago by
Cc:  Jeroen Demeyer Travis Scrimshaw Jori Mäntysalo removed 

Milestone:  sageduplicate/invalid/wontfix → sage7.6 
Status:  needs_review → needs_work 
sorry, I did a wrong move here, this is probably not yet ready to be closed
comment:13 Changed 6 years ago by
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:
505ce41  py3 : test branch for range !!! DO NOT MERGE !!!

comment:14 Changed 6 years ago by
Milestone:  sage7.6 → sageduplicate/invalid/wontfix 

comment:17 Changed 6 years ago by
Description:  modified (diff) 

Summary:  Python 3 preparation: "xrange()" is gone and "range()" becomes an iterator → Python3 : Test ticket for range() 
comment:18 Changed 6 years ago by
Description:  modified (diff) 

comment:23 Changed 5 years ago by
I have just run the patchbot. There is still a lot of things to be done here.
comment:26 Changed 5 years ago by
Resolution:  → wontfix 

Status:  needs_work → closed 
Going ahead and closing (unless you disagree) since it's not a real change to commit. There aren't too many rangerelated 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
Branch:  u/chapoton/test_branch_for_range 

Commit:  505ce41e40a6006e445c32e12f5a4be6b85fc252 
I moved most of the renaming part to #16457.