enumerate overflow

Raymond Hettinger python at rcn.com
Wed Oct 3 17:22:36 EDT 2007


On Oct 3, 12:52 pm, koara <ko... at atlas.cz> wrote:
> Thanks everybody for the reply and suggestions, I'm glad to see the
> issues's already been discovered/discussed/almostresolved.

The new code is checked-in.  In Py2.6, enumerate() will no longer
raise an OverflowError and it will automatically shift from ints to
longs.   Will check in something similar for itertools.count() when I
get a chance.


Raymond





More information about the Python-list mailing list