Not fully understanding the role of Queue.task_done()

Martin DeMello martindemello at gmail.com
Thu Sep 4 15:51:25 EDT 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