beginning index for generators

Andrew Dalke adalke at
Mon Oct 18 00:24:35 CEST 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):

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

				dalke at

More information about the Python-list mailing list