Coroutines with async and await syntax (Python 3.5)

With Python 3.5 released, the thing that drew my attention is the support for asynchronous programming through PEP 0492 -- Coroutines with async and await syntax, which added awaitable objects, coroutine functions, asynchronous iteration, and asynchronous context managers. I found the mailing list discussions (look both above and below) particularly helpful in understanding what exactly is going on.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Limited coroutines

These seem from a quick glance to be a limited class of coroutines compared with, say, Felix fibres. Both have yielding generators but these are strictly equivalent to fibres with a single channel of communication between a pair of routines.

It's a pity the model eschewed in Stackless Python wasn't followed IMHO.