Sturla Molden <sturla.mol...@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
linux.)


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to