PyMOTW: itertools

by Doug Hellmann

The itertools module includes a set of functions for working with iterable (sequence-like) data sets.