[Python-ideas] An exciting opportunity to update PEP 3156

Guido van Rossum guido at python.org
Mon Sep 12 15:45:44 EDT 2016


On Sun, Sep 11, 2016 at 11:54 PM, Andrew Svetlov
<andrew.svetlov at gmail.com> wrote:
> Should Task.current_task() be declared as a part of supported public API?

Sure.

> Should we declare that every asyncio coroutine is executed in a task
> context?

What importance does this have? Task.get_current_task() can return None.

-- 
--Guido van Rossum (python.org/~guido)


More information about the Python-ideas mailing list