[Python-ideas] Add lookahead iterator (peeker) to itertools

Wolfgang Maier wolfgang.maier at biologie.uni-freiburg.de
Mon Feb 25 10:51:17 CET 2013


Terry Reedy <tjreedy at ...> writes:

> class lookahead():
>      "Wrap iterator with lookahead to both peek and test exhausted"
...

+1 That's a nice tool that I'd love to have in itertools.

Cheers,
Wolfgang






More information about the Python-ideas mailing list