Peter Otten __peter__ at
Fri May 12 06:58:04 CEST 2006

placid wrote:

> I have a thread that has a job Queue, it continuosly polls this queue
> to see if there are any jobs for it, what i really wont to be able to
> do is, when the queue is empty, i want the thread to pause (or more
> technical, i want the thread to block) until the queue gets populated
> again. Is this possible ?

Isn't that the default behaviour of Queue.get()? 


More information about the Python-list mailing list