[issue7298] reversed(range(x, -1, -1)) is empty when x > 1

Mark Dickinson report at bugs.python.org
Sat Nov 14 12:09:54 CET 2009


Mark Dickinson <dickinsm at gmail.com> added the comment:

It looks like the PyLong version of reverse is broken too:

>>> list(range(10**100, 10**100-2, -2))
[1000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000]
>>> list(reversed(range(10**100, 10**100-2, -2)))
[9999999999999999999999999999999999999999999999999999999999999999999999999
999999999999999999999999998]

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7298>
_______________________________________


More information about the Python-bugs-list mailing list