cpython: 44b69e95d276 (original) (raw)

Mercurial > cpython

changeset 86628:44b69e95d276

Issue #11161: Update the documentation for ProcessPoolExecutor to note that it will not work in the interactive shell. [#11161]

bquinlan brian@sweetapp.com
date Sat, 26 Oct 2013 04:49:55 +1100
parents e2c3f638c3d0
children 687eba0182d7
files Doc/library/concurrent.futures.rst
diffstat 1 files changed, 3 insertions(+), 0 deletions(-)[+] [-] Doc/library/concurrent.futures.rst 3

line wrap: on

line diff

--- a/Doc/library/concurrent.futures.rst +++ b/Doc/library/concurrent.futures.rst @@ -164,6 +164,9 @@ uses a pool of processes to execute call 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.