Range() limit

Chad Netzer cnetzer at mail.arc.nasa.gov
Tue Feb 25 03:43:27 CET 2003

On Mon, 2003-02-24 at 18:22, Magnus Lie Hetland wrote:

> I thought perhaps the following would work, but, alas, no...
>   from itertools import islice, count
>   for i in islice(count(), 10**10):
>       do_something(i)
> here, too, the requirement is that i remains an int. But with this
> amount of code, it's just as easy to implement it yourself, of course.

Perhaps I'll come up with a patch for that, too, just for kicks. :)

Bay Area Python Interest Group - http://www.baypiggies.net/

Chad Netzer
(any opinion expressed is my own and not NASA's or my employer's)

More information about the Python-list mailing list