itertools.cycle, that's its exact purpose:
from itertools import cycle lst = ['a', 'b', 'c'] pool = cycle(lst) for item in pool: print item,
a b c a b c ...
(Loops forever, obviously)
In order to manually advance the iterator and pull values from it one by one, simply call
>>> next(pool) 'a' >>> next(pool) 'b'