Not fully understanding the role of Queue.task_done()

Martin DeMello martindemello at gmail.com
Thu Sep 4 21:51:25 CEST 2008


On Sep 4, 12:41 pm, Fredrik Lundh <fred... at pythonware.com> 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 and catch the exception when
it's done?

martin



More information about the Python-list mailing list