[docs] [issue27747] Broken example in the queue module documentation

R. David Murray report at bugs.python.org
Fri Aug 12 10:42:52 EDT 2016


R. David Murray added the comment:

The example looks correct to me.  Have you tested it and seen it hang?

The q.join() is done, and returns once all the puts have been processed.  *Then* None is put for each worker, which terminates the worker thread.  There's no q.join() to block at that point.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27747>
_______________________________________


More information about the docs mailing list