I really recommend this tutorial:<div><a href="http://krondo.com/?page_id=1327">http://krondo.com/?page_id=1327</a></div><div><br></div><div>Direct PDF link:</div><div><a href="http://krondo.com/?page_id=1327">http://krondo.com/?page_id=1327</a></div>
<div><br></div><div>It really helped me understand Twisted, coming from a synchronous Java background.</div><div><br></div><div>Once you get to the @defer.inlineCallbacks chapter, things will become much more clear.</div>
<div>Twisted inline callbacks allows you to write async code with the clarity of sync code.</div><div><br></div><div>As Phil mentioned, Deferred is the work horse of Twisted and crucial to using it effectively.</div><div>
<br></div><div>Cheers,</div><div>Jacek<br><br><div class="gmail_quote">On Sun, Oct 16, 2011 at 11:11 AM, Phil Mayers <span dir="ltr">&lt;<a href="mailto:p.mayers@imperial.ac.uk">p.mayers@imperial.ac.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On 10/16/2011 04:08 PM, Phil Mayers wrote:<br>
<br>
&gt; d = self.client.getPage(url)<br>
<br>
Drat. That should be:<br>
<br>
   d = client.getPage(url)<br>
<br>
i.e. you&#39;re calling twisted.web.client.getPage<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
Twisted-web mailing list<br>
<a href="mailto:Twisted-web@twistedmatrix.com">Twisted-web@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web</a><br>
</div></div></blockquote></div><br></div>