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

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Feb 17 10:04:37 CET 2009

Guillaume Chereau wrote:

> In the context of a coroutine, 'yield from' means : "we start this
> other coroutine, and return to the current coroutine when it is done",
> and I was expecting the syntax to somehow express this idea.

For what it's worth, I tend to feel the same way.
I was originally going to call it 'call':

   y = call g(x)

but Guido convinced me that 'call' is far too generic
a word and doesn't convey any connection with generators
at all.

If anyone has any other suggestions, I'll gladly
consider them.


More information about the Python-ideas mailing list