[Python-Dev] Using async/await in place of yield expression

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Nov 27 16:58:56 EST 2017


Guido van Rossum wrote:
> The source for sleep() isn't very helpful -- e.g. @coroutine is mostly a 
> backwards compatibility thing.

So how are you supposed to write that *without* using @coroutine?

-- 
Greg



More information about the Python-Dev mailing list