[Python-checkins] cpython: Issue #11161: Update the documentation for ProcessPoolExecutor to note that it
brian.quinlan
python-checkins at python.org
Fri Oct 25 19:51:29 CEST 2013
http://hg.python.org/cpython/rev/44b69e95d276
changeset: 86628:44b69e95d276
parent: 86625:e2c3f638c3d0
user: bquinlan <brian at sweetapp.com>
date: Sat Oct 26 04:49:55 2013 +1100
summary:
Issue #11161: Update the documentation for ProcessPoolExecutor to note that it will not work in the interactive shell.
files:
Doc/library/concurrent.futures.rst | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Doc/library/concurrent.futures.rst b/Doc/library/concurrent.futures.rst
--- a/Doc/library/concurrent.futures.rst
+++ b/Doc/library/concurrent.futures.rst
@@ -164,6 +164,9 @@
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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list