[Python-ideas] Yield-from: Details to be decided

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Feb 21 23:28:16 CET 2009

Arnaud Delobelle wrote:

> It will mean that you will need to be aware of the implementation of a
> generator in order to know whether it is OK to use send(None) as an
> alternative spelling of next().

Yes, and I've now decided that send(None) will be
converted to next() upon delegation in all cases.

I'm no longer going to describe the semantics in
terms of "direct communication", since that's not
exactly true any more (and probably never really


More information about the Python-ideas mailing list