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

Bruce Frederiksen dangyogi at gmail.com
Sat Feb 21 14:50:35 CET 2009


Greg Ewing wrote:
> Bruce Frederiksen wrote:
>> Actually, PEP 342 specifies that send(None) is like next():
>>
>> "Calling send(None) is exactly equivalent to calling a generator's 
>> next() method."
>
> Hmmm, yes, but... that's talking about what happens
> when you call send() on a *generator*.
OK, that argument makes sense.  And I can't think of any 
counter-examples off of the top of my head where send(None) needs to 
call next...

-bruce frederiksen



More information about the Python-ideas mailing list