[Python-ideas] The async API of the future

Itamar Turner-Trauring itamar at futurefoundries.com
Sat Nov 3 13:18:01 CET 2012

On Sat, Nov 3, 2012 at 8:02 AM, Itamar Turner-Trauring <
itamar at futurefoundries.com> wrote:

> Twisted supports both select()-style loops and IOCP, in a way that is
> transparent to user code. They key is presenting an async API to users
> (e.g. Protocol.dataReceived gets called with bytes), rather than e.g.
> trying to pretend they're talking to a socket-like object you can call
> recv() on.

Although, if you're using a yield based API (or coroutines) you can have a
recv()/read()-style API with IOCP as well.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20121103/c0838c9a/attachment.html>

More information about the Python-ideas mailing list