summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorbquinlan <brian@sweetapp.com>2013-10-25 17:49:55 (GMT)
committerbquinlan <brian@sweetapp.com>2013-10-25 17:49:55 (GMT)
commit7749cb5c359eca595f4d4981ed98cdbe054f3586 (patch)
tree2da2ad1e2492e40694f4b9bbea0d51d0acf84536 /Doc
parentffd33c290b11e8c5e19be6063a07da3deed73e46 (diff)
downloadcpython-7749cb5c359eca595f4d4981ed98cdbe054f3586.zip
cpython-7749cb5c359eca595f4d4981ed98cdbe054f3586.tar.gz
cpython-7749cb5c359eca595f4d4981ed98cdbe054f3586.tar.bz2
Issue #11161: Update the documentation for ProcessPoolExecutor to note that it will not work in the interactive shell.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/concurrent.futures.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/concurrent.futures.rst b/Doc/library/concurrent.futures.rst
index c2f92b3..93538e4 100644
--- a/Doc/library/concurrent.futures.rst
+++ b/Doc/library/concurrent.futures.rst
@@ -164,6 +164,9 @@ uses a pool of processes to execute calls asynchronously.
allows it to side-step the :term:`Global Interpreter Lock` but also means that
only picklable objects can be executed and returned.
+The ``__main__`` module must be importable by worker subprocesses. This means
+that :class:`ProcessPoolExecutor` will not work in the interactive interpreter.
+
Calling :class:`Executor` or :class:`Future` methods from a callable submitted
to a :class:`ProcessPoolExecutor` will result in deadlock.