[Python-Dev] Revised**8 PEP on Yield-From
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Mar 27 06:00:57 CET 2009
Nick Coghlan wrote:
> Since correctly written generators are permitted to
> convert GeneratorExit to StopIteration, the 'yield from' expression
> should detect when that has happened and reraise the original exception.
I'll have to think about that a bit, but you're
probably right.
> it is also necessary to block close() in order to share an
> iterator.
That's a typo -- I meant to say 'throw' and 'close'
there, I think.
--
Greg
More information about the Python-Dev
mailing list