[Python-ideas] Revised revised revised PEP on yield-from

Raymond Hettinger python at rcn.com
Tue Feb 17 08:04:48 CET 2009


[Greg Ewing]
> It should be able to expect whatever would happen if the
> body of the delegated-to generator were inlined into the
> delegating generator.
> 
> That's the core idea behind all of this -- being able to
> take a chunk of code containing yields, abstract it out
> and put it in another function, without the ouside world
> being any the wiser.

That's a very nice synopsis.

It should probably be right at the top of the PEP.


Raymond



More information about the Python-ideas mailing list