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

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Apr 23 10:02:57 CEST 2015


Ludovic Gasc wrote:

> Not related, but one of my coworkers asked me if with the new syntax it 
> will be possible to write an async decorator for coroutines.

This is certainly possible with PEP 3152. The decorator
just needs to be an ordinary function whose return
value is a cofunction.

-- 
Greg


More information about the Python-Dev mailing list