New submission from Peter:

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.

----------
messages: 198997
nosy: maubp
priority: normal
severity: normal
status: open
title: Add range to future_builtins
type: enhancement
versions: Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19174>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to