Condition.wait(0.5) doesn't respect it's timeout

stephane.bisinger at gmail.com stephane.bisinger at gmail.com
Sat Apr 18 15:22:27 CEST 2009


On Apr 18, 2:05 pm, a... at pythoncraft.com (Aahz) wrote:
> Whether or not there's a bug, you likely will simplify your code if you
> switch to using a Queue().

I'm sorry, but I can't see how the queue would help me on this, since
I only have 2 threads and the documentation esplicitly states that it
helps with multiple threads. I have no items to put in the queue, my
only concern is not to update the screen while I am changing the state
of the contact list... Maybe there's something I didn't think of, but
I'd need more details on your part if that is the case, because I
really can't see the advantage of Queue in this situation...

Thanks,
Stéphane



More information about the Python-list mailing list