From 518eaa8a7676a456ef8f04a8645af28c8b1ea09c Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Tue, 9 Nov 2010 21:46:03 +0000 Subject: Issue #7707: Documented that multiprocessing.Queue operations during import can lead to deadlocks. --- Doc/library/multiprocessing.rst | 4 +++- Misc/NEWS | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 4f3f1cd..d611278 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -120,7 +120,9 @@ processes: print(q.get()) # prints "[42, None, 'hello']" p.join() - Queues are thread and process safe. + Queues are thread and process safe, but note that they must never + be instantiated as a side effect of importing a module: this can lead + to a deadlock! (see :ref:`threaded-imports`) **Pipes** diff --git a/Misc/NEWS b/Misc/NEWS index 3e0de21..365b9cb 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -2879,6 +2879,9 @@ Build Documentation ------------- +- Issue #7707: Document that ``multiprocessing.Queue`` operations during import + can lead to deadlocks. + - Issue #9817: Add expat COPYING file; add expat, libffi and expat licenses to Doc/license.rst. -- cgit v0.12