[Python-Dev] generator comprehension syntax,
was: accumulator display syntax
Guido van Rossum
guido at python.org
Fri Oct 17 23:57:21 EDT 2003
> Which, by the way, brings up a question: should iterator comps be
> reiterable? I don't see any reason right now why they shouldn't be, and
> can think of situations where reiterability would be useful.
Oh, no. Not reiterability again. How can you promise something to be
reiterable if you don't know whether the underlying iterator can be
reiterated? Keeping a hidden buffer would be a bad idea.
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev