[Python-Dev] yield * (Re: Missing operator.call)
Willem Broekema
metawilm at gmail.com
Sat Feb 7 10:31:35 CET 2009
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
More information about the Python-Dev
mailing list