This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add range to future_builtins
Type: enhancement Stage:
Components: Versions: Python 2.7
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: maubp, rhettinger
Priority: normal Keywords:

Created on 2013-10-05 18:54 by maubp, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg198997 - (view) Author: Peter (maubp) Date: 2013-10-05 18:54
Much like how iterator style filter, map and zip are available via future_builtins (issue #2171), it would be natural to expect range to be there too, e.g.

>>> from future_builtins import range
>>> range(5)
range(0, 5)

The 2to3 fixers would need to be modified in the same way the map/filter/zip fixers were to be aware when a Python3 style range was in use via this import.
msg199016 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2013-10-05 23:40
This would have been a good idea, but that ship has sailed.   The API for Python 2.7 is now set in stone.   Sorry.
History
Date User Action Args
2022-04-11 14:57:51adminsetgithub: 63373
2013-10-05 23:40:43rhettingersetstatus: open -> closed

nosy: + rhettinger
messages: + msg199016

resolution: rejected
2013-10-05 18:54:41maubpcreate