Re: [Python-Dev] PEP 380 (yield from a subgenerator) comments

On Sun Mar 22 09:11:29 CET 2009 Greg Ewing wrote:
As for confusion, we ignore the return values of function calls all the time, without worrying that someone might be confused by the fact that their return value doesn't go anywhere. And that's the right way to think of a yield-from expression -- as a kind of function call, not a kind of yield.
If there's anything confusing, it's the presence of the word 'yield'. Its only virtue is that it gives a clue that the construct has something to do with generators, but you'll have to RTM to find out exactly what. Nobody has thus far suggested any better name, however.
The PEP doesn't seem to contain a list of unacceptable names and reasons in the section where the problem with the name is mentioned. So I wonder why the obvious 'delegate to' is not acceptable? (Because adding a keyword would make it less likely to be accepted?) -- R. David Murray http://www.bitdance.com
participants (1)
-
R. David Murray