1 2 3 4 5 6 7 8 9 10
# reiterable.py class ReIter(object): "A re-iterable object." def __iter__(self): yield 1 yield 2 yield 3