itertools.islice and slice objects
Raymond Hettinger
vze4rx4y at verizon.net
Wed Nov 24 10:46:09 EST 2004
More information about the Python-list mailing list
Wed Nov 24 10:46:09 EST 2004
- Previous message (by thread): itertools.islice and slice objects
- Next message (by thread): Transfer data from webpage form to database
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[Steven Bethard] > Is there a reason that itertools.islice doesn't support None arguments > for start and step? This would be handy for use with slice objects Offhand, this seems like a reasonable idea. Please file a Py2.5 feature request and assign to me. > Of course, I can get (start, stop, step) tuples with slice.indices, but > only if I know the length of the iterable, which kinda defeats the > purpose of using itertools... The main purpose is to extract elements one at time instead of all at once. This memory friendly approach results in better scalability. Raymond Hettinger
- Previous message (by thread): itertools.islice and slice objects
- Next message (by thread): Transfer data from webpage form to database
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list