Hello, On Thu, 30 Apr 2015 18:53:00 +1200 Greg Ewing <greg.ew...@canterbury.ac.nz> wrote:
> 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. But of course it's only a Wikipedia page, which doesn't mean it has to provide complete and well-defined picture, and quality of some (important) Wikipedia pages is indeed pretty poor and doesn't improve. -- Best regards, Paul mailto:pmis...@gmail.com _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com