[issue26428] The range for xrange() is too narrow on Windows 64-bit

Eryk Sun report at bugs.python.org
Wed Feb 24 15:03:58 EST 2016


Eryk Sun added the comment:

> xrange() still functions if you give it a value larger than `long`

What do you mean? Did you mean to write range() instead of xrange()? Both range and xrange in Python 2 use a C long for the start, stop, step, and length values. With how they get used this generally isn't a problem, which is why no one previously created an issue for this.

----------
nosy: +eryksun

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


More information about the Python-bugs-list mailing list