Diego <[EMAIL PROTECTED]> added the comment: 2008/8/6 Mark Dickinson <[EMAIL PROTECTED]>: > > Mark Dickinson <[EMAIL PROTECTED]> added the comment: > > By the way, do you already know about xrange? > > xrange([start,] stop[, step]) -> xrange object > > Like range(), but instead of returning a list, returns an object that > generates the numbers in the range on demand. For looping, this is > slightly faster than range() and more memory efficient. > > _______________________________________ > Python tracker <[EMAIL PROTECTED]> > <http://bugs.python.org/issue3508> > _______________________________________ >
Traceback (most recent call last): File "<stdin>", line 1, in <module> OverflowError: long int too large to convert to int 4294967296L 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