[Python-Dev] yield * (Re: Missing operator.call) (original) (raw)
Willem Broekema metawilm at gmail.com
Sat Feb 7 10:31:35 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 ]
On Sat, Feb 7, 2009 at 10:04 AM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
def f(): v = yield *g() print v
def g(): yield 42 return "spam"
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?
- Willem
- 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 ]