Programming
Wednesday, February 9, 2011
Python itertools
import
itertools
Infinitely iterate over an iterator. By default, iterators throw an exception once the last object is retrieved.
my_iterator = itertools.cycle(iterator)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment