Re: Not fully understanding the role of Queue.task_done()

2008-09-04 Thread Martin DeMello
On Sep 4, 1:51 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Martin DeMello wrote: > > I'm writing a cluster monitor, that collects information from a set of > > machines and logs it to a database > > > In the interests of not hammering the db unnecessarily

Re: Not fully understanding the role of Queue.task_done()

2008-09-04 Thread Martin DeMello
On Sep 4, 1:04 pm, castironpi <[EMAIL PROTECTED]> wrote: > > Random access isn't supported by the defined interface.  You can make > it more convenient, though. Thanks. I wasn't looking for random access, just wondering what the cleanest way to implement items = Queue.get_all() was. Your code shou

Re: Not fully understanding the role of Queue.task_done()

2008-09-04 Thread Martin DeMello
On Sep 4, 12:41 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > "task_done" just decrements a counter (incremented by "put").  when the > counter reaches zero, the "join" call is unblocked. Thanks! Is there any standard python idiom to empty a queue into a list? Or do I just call get() repeatedly

Not fully understanding the role of Queue.task_done()

2008-09-04 Thread Martin DeMello
I'm writing a cluster monitor, that collects information from a set of machines and logs it to a database In the interests of not hammering the db unnecessarily, I'm considering the following 1. A series of independent "monitor" threads that collect information over TCP from the cluster of machine

Re: gtkmozembed in fedora core 3

2005-08-24 Thread Martin DeMello
Jonas Geiregat <[EMAIL PROTECTED]> wrote: > > If you can't find any rpm's there aren't any available. > You need to compile mozilla with (I think) support for gtkmozembed but I > guess that's done by default when you compile mozilla with > ac_add_options --enable-default-toolkit=gtk2 in your moz

gtkmozembed in fedora core 3

2005-08-23 Thread Martin DeMello
Could someone help me get gtkmozembed working under fc3? The only available rpms need gnome-python2 >= 2.9 and fc3 ships with 2.6. I can't find any fc3 rpms to upgrade gnome-python2 and I can't quite figure out what I'd need to compile just to install gtkmozembed and the python bindings (I need to