[Python-ideas] Built-in function to run coroutines
Nick Coghlan
ncoghlan at gmail.com
Tue Nov 15 02:52:15 EST 2016
On 15 November 2016 at 04:39, Yury Selivanov <yselivanov.ml at 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 at gmail.com | Brisbane, Australia
More information about the Python-ideas
mailing list