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/085912.html below:

[Python-Dev] Missing operator.call

[Python-Dev] Missing operator.call [Python-Dev] Missing operator.callGreg Ewing greg.ewing at canterbury.ac.nz
Fri Feb 6 12:20:42 CET 2009
Stephen J. Turnbull wrote:
> Greg Ewing writes:
> 
>  > The fact that yielding is going on is not of
>  > interest in that situation
> 
> But doesn't "yield" in the sense of "yield the right of way" mean
> exactly that?

I've no problem with using 'yield' when actually
giving up control. But the code making the call doesn't
think of itself as yielding. The called code may
want to yield, but the caller doesn't care about
that. It just wants to make the callee do its thing,
whatever it is.

Ideally the caller would be able to use a normal
function call, but Python generators don't work
that way. The next best thing is a slightly
different form of call syntax.

-- 
Greg

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