(original) (raw)

changeset: 86628:44b69e95d276 parent: 86625:e2c3f638c3d0 user: bquinlan brian@sweetapp.com date: Sat Oct 26 04:49:55 2013 +1100 files: Doc/library/concurrent.futures.rst description: Issue #11161: Update the documentation for ProcessPoolExecutor to note that it will not work in the interactive shell. diff -r e2c3f638c3d0 -r 44b69e95d276 Doc/library/concurrent.futures.rst --- a/Doc/library/concurrent.futures.rst Fri Oct 25 12:44:36 2013 -0400 +++ b/Doc/library/concurrent.futures.rst Sat Oct 26 04:49:55 2013 +1100 @@ -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. /brian@sweetapp.com