[Python-Dev] async/await in Python; v2

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 24 02:14:49 CEST 2015


Andrew Svetlov wrote:

> But we already have asyncio and code based on asyncio coroutines.
> To make it work I should always use costart() in places where asyncio
> requires coroutine.

As I understand it, asyncio would require changes to
make it work seamlessly with PEP 492 as well, since
an object needs to have either a special flag or
an __await__ method before it can have 'await'
applied to it.

-- 
Greg


More information about the Python-Dev mailing list