Guido van Rossum wrote: > If you find the 'empty' flag pattern too ugly, you can always write a > helper class that takes an iterator and returns an object that > represents the same iterator, but sometimes buffers one element. Perhaps one of these could be included as an itertool? Greg