Kaydet (Commit) 7749cb5c authored tarafından bquinlan's avatar bquinlan

Issue #11161: Update the documentation for ProcessPoolExecutor to note that it…

Issue #11161: Update the documentation for ProcessPoolExecutor to note that it will not work in the interactive shell.
üst ffd33c29
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment