beginning index for generators

Andrew Dalke adalke at mindspring.com
Sun Oct 17 18:24:35 EDT 2004


Peter Otten wrote:
> As to itertools.islice(), anyone who throws away, say,
> the first 2**31 values of an iteration has probably other things than
> Python's limitations to worry about.

True enough.

Personally I'm surprised to see that my two year old laptop
can do

   for i in xrange(0, sys.maxint):
     pass

in just over 7 minutes.  It's like in the 1980s when I
realized that 16 bit numbers were small.


				Andrew
				dalke at dalkescientific.com



More information about the Python-list mailing list