Re: Using Twisted to process a pool of messages

AmirBehzad Eslami <[email protected]>
Newsgroups gmane.comp.python.twisted.web
Message-ID <CAB=ZGGDvRUM+jGz6sg_w454iP9GUe2UHMuQmLknL7hc+C56ZGw@mail.gmail.com>
Wow, Thanks a ton, for the code and for the tutorial.
Thanks for your prompt replies.
I'll back soon with good results. Optimistic.

On 10/16/11, Jacek Furmankiewicz <[email protected]> wrote:
> I really recommend this tutorial:
> http://krondo.com/?page_id=1327
>
> Direct PDF link:
> http://krondo.com/?page_id=1327
>
> It really helped me understand Twisted, coming from a synchronous Java
> background.
>
> Once you get to the @defer.inlineCallbacks chapter, things will become much
> more clear.
> Twisted inline callbacks allows you to write async code with the clarity of
> sync code.
>
> As Phil mentioned, Deferred is the work horse of Twisted and crucial to
> using it effectively.
>
> Cheers,
> Jacek
>
> On Sun, Oct 16, 2011 at 11:11 AM, Phil Mayers
> <[email protected]>wrote:
>
>> On 10/16/2011 04:08 PM, Phil Mayers wrote:
>>
>> > d = self.client.getPage(url)
>>
>> Drat. That should be:
>>
>>   d = client.getPage(url)
>>
>> i.e. you're calling twisted.web.client.getPage
>>
>> _______________________________________________
>> Twisted-web mailing list
>> [email protected]
>> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
>>
>


-- 
Kind regards,
-behzad
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.