[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-ideas
Subject:    Re: [Python-ideas] Built-in function to run coroutines
From:       Nick Coghlan <ncoghlan () gmail ! com>
Date:       2016-11-15 7:52:15
Message-ID: CADiSq7cTXXUVkT0PRSNo0AcA5=Lmk=Kypfb6PQMnpSQqMpPkaQ () mail ! gmail ! com
[Download RAW message or body]

On 15 November 2016 at 04:39, Yury Selivanov <yselivanov.ml@gmail.com> wrote:
> On 2016-11-14 1:35 PM, Sven R. Kunze wrote:
>>
>> What about making "run" an instance method of coroutines?
>
> That would require coroutines to be aware of the loop that is running them.
> Not having them aware of that is what makes the design simple and allows
> alternatives to asyncio.

It also helps minimise the additional work needed for Tornado, Cython,
etc to provide their own coroutine implementations.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan@gmail.com   |   Brisbane, Australia
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic