which async framework?

Marko Rauhamaa marko at pacujo.net
Tue Mar 11 11:51:19 CET 2014

Sturla Molden <sturla.molden at gmail.com>:

> Looking at Tornado's examples on the web I find this:
> [...]
> (1)  This was written by some Java guys.

I have written several Python async "frameworks" starting from
select.epoll(). It's only a handful of lines of code (plus an AVL tree
implementation for timers). Then, I've had to implement the protocols
myself because the standard library implementations aren't amenable to
async processing.

Now, I've taken a brief look at the new asyncio and it looks as if it
has everything one would hope for (and then some). You'd still need to
supply the protocol implementations yourself.

Since the async framework is such a small piece of the puzzle and since
the edge-triggered mode of select.epoll() is a nicer programming model
than asyncio provides, I might stick with epoll. (Yes, it is specific to


More information about the Python-list mailing list