[Python-Dev] Revised**8 PEP on Yield-From

Guido van Rossum guido at python.org
Fri Mar 27 04:34:34 CET 2009


On Thu, Mar 26, 2009 at 5:21 AM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Here's a new draft of the PEP. I've added a Motivation
> section and removed any mention of inlining.
>
> There is a new expansion that incorporates recent ideas,
> including the suggested handling of StopIteration raised
> by a throw() call (i.e. if it wasn't the one thrown in,
> treat it as a return value).
>
> Explicit finalization is performed if the delegating
> generator is closed, but not when the subiterator
> completes itself normally.

Submitted to SVN.

I'll try to critique later.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list