<br><br><div class="gmail_quote">On Tue, Mar 19, 2013 at 11:00 AM, Tim Allen <span dir="ltr">&lt;<a href="mailto:screwtape@froup.com" target="_blank">screwtape@froup.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In Guido&#39;s keynote at PyCon 2013, apparently he talked about adding an<br>
async I/O module to Python 3.4. It looks like his slides can be viewed<br>
here:<br>
<br>
    <a href="https://www.dropbox.com/s/xknbe58zcvjhzhv/PyCon2013.pptx" target="_blank">https://www.dropbox.com/s/xknbe58zcvjhzhv/PyCon2013.pptx</a><br>
<br>
...while this is the PEP he&#39;s talking about:<br>
<br>
    <a href="http://www.python.org/dev/peps/pep-3156/" target="_blank">http://www.python.org/dev/peps/pep-3156/</a><br>
<br>
At first glance, the proposed reactor API looks very much like Twisted&#39;s<br>
(or, to be fair, GTK&#39;s, or possibly any number of other async event loop<br>
I&#39;m less familiar with) but rather than Deferreds and callbacks, the API<br>
will be based around Futures (similar, but not identical, to Python<br>
3.2&#39;s concurrent.futures.Future class), and an inlineCallbacks-style<br>
decorator for generators.<br>
<br>
I know Deferreds are awesome, and I don&#39;t know much about Futures (and<br>
I know Twisted core developers have given negative reviews of<br>
other Deferred/Promise/Future implementations in, say, JavaScript<br>
libraries before), and inlineCallbacks seems to have a negative<br>
reputation among experienced Twisted users. Is there anybody on this<br>
list who knows more about this new PEP (maybe somebody who&#39;s at PyCon<br>
and saw the talk in person) who can give us an informed comparison with<br>
the current state of Twisted?<br>
<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</blockquote></div><br><div><br></div><div>Hi </div><div><br></div><div>  <span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">inlineCallbacks</span><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"> is ok to me. I use it daily. I can keep code snippets succinct. no more callbacks, deep nested callbacks (they let me recall those days with javascript &amp; node.js). The only thing I complain is it doesn&#39;t work with cython.</span></div>
<div><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font color="#222222" face="arial, sans-serif">Regards</font></div><div><font color="#222222" face="arial, sans-serif"><br>
</font></div><div><font color="#222222" face="arial, sans-serif">gelin yan</font></div>