On Sat, Feb 7, 2009 at 10:04 AM, Greg Ewing <greg.ew...@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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to