This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients Paulo Gabriel Poiati, docs@python, r.david.murray
Date 2016-08-12.14:42:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1471012972.29.0.797435435443.issue27747@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2016-08-12 14:42:52r.david.murraysetrecipients: + r.david.murray, docs@python, Paulo Gabriel Poiati
2016-08-12 14:42:52r.david.murraysetmessageid: <1471012972.29.0.797435435443.issue27747@psf.upfronthosting.co.za>
2016-08-12 14:42:52r.david.murraylinkissue27747 messages
2016-08-12 14:42:52r.david.murraycreate