iter with stepsize

Paul Rubin http
Wed Oct 15 23:12:20 EDT 2008


Alan G Isaac <alan.isaac at gmail.com> writes:
> If I have a sequence, I can get every other or every fifth
> element by slicing.  Is there an equivalent for iterators?

itertools.islice



More information about the Python-list mailing list