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/2015-April/139684.html below:

[Python-Dev] PEP 492: What is the real goal?

[Python-Dev] PEP 492: What is the real goal? [Python-Dev] PEP 492: What is the real goal?Greg Ewing greg.ewing at canterbury.ac.nz
Thu Apr 30 08:53:00 CEST 2015
Skip Montanaro wrote:
> According to Wikipedia <http://en.wikipedia.org/wiki/Coroutine>, term 
> "coroutine" was first coined in 1958, so several generations of computer 
> science graduates will be familiar with the textbook definition. If your 
> use of "coroutine" matches the textbook definition of the term, I think 
> you should continue to use it instead of inventing new names which will 
> just confuse people new to Python.

I don't think anything in asyncio or PEP 492 fits that
definition directly. Generators and async def functions
seem to be what that page calls a "generator" or "semicoroutine":

    they differ in that coroutines can control where execution
    continues after they yield, while generators cannot, instead
    transferring control back to the generator's caller.

-- 
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