[Twisted-Python] So... Python 3.4 is getting its own async I/O system

Itamar Turner-Trauring itamar at futurefoundries.com
Tue Mar 19 17:16:32 EDT 2013


On Mon, Mar 18, 2013 at 11:00 PM, Tim Allen <screwtape at froup.com> wrote:

> In Guido's keynote at PyCon 2013, apparently he talked about adding an
> async I/O module to Python 3.4. It looks like his slides can be viewed
> here:
>
>     https://www.dropbox.com/s/xknbe58zcvjhzhv/PyCon2013.pptx
>
> ...while this is the PEP he's talking about:
>
>     http://www.python.org/dev/peps/pep-3156/
>
> At first glance, the proposed reactor API looks very much like Twisted's
> (or, to be fair, GTK's, or possibly any number of other async event loop
> I'm less familiar with) but rather than Deferreds and callbacks, the API
> will be based around Futures (similar, but not identical, to Python
> 3.2's concurrent.futures.Future class), and an inlineCallbacks-style
> decorator for generators.
>

There's two parts: one is a standardized, pluggable API for event loops.
It's explicitly based on Twisted's, and will be easy to add a Twisted
implementation. The generator thing is layered on top, and somewhat
optional, in theory.

-Itamar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20130319/cbf304f8/attachment.htm 


More information about the Twisted-Python mailing list