Send data to asyncio coroutine

Marko Rauhamaa marko at
Sat Aug 1 20:33:51 CEST 2015

Javier <jcarmena at>:

> I agree with you, Marko, I came from callbacks too. So, if GvR wants
> the yield from become de-facto, does it mean that all python libraries
> will evolve to become asyncio friendly libs? or that I have to write
> my own library so I can use existing libraries like pickle? I think
> "callback hell" is "peccata minuta" compared with "yield from hell".

I guess GvR expects Twisted, Tornado et al jump on the asyncio

Myself, I would like the lowest-level I/O transactions to be broken into
their atomic, nonblocking primitives:

    request       optional: update(s), cancellation
    response      optional: preliminary response(s)

Those primitives can be then used to put together asyncio coroutines or
blocking functions for multithreading. Or they can be used as-is in
classical callback programming.


More information about the Python-list mailing list