[issue27747] Broken example in the queue module documentation

Paulo Gabriel Poiati report at bugs.python.org
Fri Aug 12 10:01:01 EDT 2016


New submission from Paulo Gabriel Poiati:

I believe the code example at https://docs.python.org/3.6/library/queue.html is broken. The break condition in the worker loop (when the queued value is None) must call the `task_done` before breaking, otherwise the code blocks indefinitely in the `queue.join()` statement.

----------
assignee: docs at python
components: Documentation
messages: 272540
nosy: Paulo Gabriel Poiati, docs at python
priority: normal
severity: normal
status: open
title: Broken example in the queue module documentation
type: enhancement
versions: Python 3.5, Python 3.6

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


More information about the Python-bugs-list mailing list