[Python-ideas] Revised**12 PEP on Yield-From

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 24 01:44:49 CEST 2009

Erik Groeneveld wrote:

> I interpreted it as when the generator did not raise an exception, but
> close does, it is a different situation.  I'll think about it more
> deeply.

Keep in mind that as far as the PEP is concerned,
it's not necessarily dealing with a generator, just
some object that happens to implement certain
methods. It has no idea what's going on inside the
close() method -- it can only go by the end result
of the call.


More information about the Python-ideas mailing list