[Python-3000] Iterators for dict keys, values, and items == annoying :)

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Mar 24 10:43:56 CET 2006


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


More information about the Python-3000 mailing list