On Nov 25, 11:24 pm, Paul Rudin <paul.nos... at rudin.co.uk> wrote: > See the last recipe from:http://docs.python.org/lib/itertools-recipes.html. It's not doing > quite the same thing, but gives an illustration of one way to approach > this sort of thing. Thanks for the link!