A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2009-February/085931.html below:

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

[Python-Dev] yield * (Re: Missing operator.call) [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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4