hing twisted is
going to limit you on, it doesn't really do anything on that level of
abstraction.
Andy Fundinger
On Mon, Nov 9, 2009 at 6:24 PM, wrote:
>
> Such global variable(lets say dictionary) will have any size limit?
>
> Quoting "Andy Fundinger" :
>
> &
; Cheers,
> Paul
>
>
> On Nov 9, 2009, at 2:42 PM, Andy Fundinger wrote:
>
> > Part of the beauty of twisted is that you don't actually need to do
> > anything
> > special to achieve that, just create a global dict or other object
> > of your
> > choi
Part of the beauty of twisted is that you don't actually need to do anything
special to achieve that, just create a global dict or other object of your
choice and access it as needed. More likely what you need to look for is a
cache expiration mechanism, I've linked in lrucache (
http://pypi.pytho
ons where the
honest answer is "however you want to do it." You may want to study
some of the examples to see the kinds of design typically used in
twisted applications and adopt one of those until you get more
comfortable.
Andy Fundinger
On Mon, Jan 19, 2009 at 5:46 AM, Krishnakant wrote
>
>
> > Is there a reason why you're using just one deferred?
> What is the advantage of using more?
>
If you use more with a DeferredList you can have [effectively] parallel page
fetches. It's like spawning threads for each page, but twisted doesn't
actually spawn threads for this I don't think.
client requested the output and the local copy was out of date,
so you may actually prefer that approach.
-Andy Fundinger
On Sun, Jan 4, 2009 at 9:52 PM, Robert Hancock wrote:
> I have a process that takes a list of URLs, uses client.getPage() to
> retrieve the data, writes the contents t