Range() limit
Chad Netzer
cnetzer at mail.arc.nasa.gov
Mon Feb 24 21:43:27 EST 2003
More information about the Python-list mailing list
Mon Feb 24 21:43:27 EST 2003
- Previous message (by thread): Range() limit
- Next message (by thread): Return Char * from C code to Python..
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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)
- Previous message (by thread): Range() limit
- Next message (by thread): Return Char * from C code to Python..
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list