]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #11161: Update the documentation for ProcessPoolExecutor to note that it will...
authorbquinlan <brian@sweetapp.com>
Fri, 25 Oct 2013 17:49:55 +0000 (04:49 +1100)
committerbquinlan <brian@sweetapp.com>
Fri, 25 Oct 2013 17:49:55 +0000 (04:49 +1100)
Doc/library/concurrent.futures.rst

index c2f92b305aab3eb64bea5e63fbb97bf8f0fa9a77..93538e4a7375ca7a23333f7b4524d2dc8b302c3b 100644 (file)
@@ -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.