[Python-Dev] yield * (Re: Missing operator.call) (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sat Feb 7 21:16:11 CET 2009
- Previous message: [Python-Dev] yield * (Re: Missing operator.call)
- Next message: [Python-Dev] yield * (Re: Missing operator.call)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] yield * (Re: Missing operator.call)
- Next message: [Python-Dev] yield * (Re: Missing operator.call)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]