[Python-Dev] yield * (Re: Missing operator.call)

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


Willem Broekema wrote:

> Function g violates the current limitation that generators can't
> return with a value. So can g only be used using "yield *" then, or
> would that limitation be removed?

The limitation would be removed, in the interests
of making it easier to use generators as coroutines.

-- 
Greg


More information about the Python-Dev mailing list