From: bquinlan Date: Fri, 25 Oct 2013 17:49:55 +0000 (+1100) Subject: Issue #11161: Update the documentation for ProcessPoolExecutor to note that it will... X-Git-Tag: v3.4.0b1~541^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7749cb5c359eca595f4d4981ed98cdbe054f3586;p=thirdparty%2FPython%2Fcpython.git Issue #11161: Update the documentation for ProcessPoolExecutor to note that it will not work in the interactive shell. --- diff --git a/Doc/library/concurrent.futures.rst b/Doc/library/concurrent.futures.rst index c2f92b305aab..93538e4a7375 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.