Diego <[EMAIL PROTECTED]> added the comment:

>>> a = xrange(2**32)
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
OverflowError: long int too large to convert to int

>>> 2**32
4294967296L

>>> a=range(2**32)
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
OverflowError: range() result has too many items



Sadly so high numbers are longs and xrange seems to get an integer.

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3508>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to