In <[EMAIL PROTECTED]>, Steven D'Aprano wrote: > Is there a general Pythonic idiom for efficiently walking over part of a > sequence without copying it first? Should there be?
What about using `itertools.islice()`:
for e in islice(a, 4):
pass
Ciao,
Marc 'BlackJack' Rintsch
--
http://mail.python.org/mailman/listinfo/python-list
