Skip to content

Commit 6a4cbc0

Browse files
committed
merge
2 parents 8ad3786 + c00cf53 commit 6a4cbc0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/concurrent.futures.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ uses a pool of processes to execute calls asynchronously.
164164
allows it to side-step the :term:`Global Interpreter Lock` but also means that
165165
only picklable objects can be executed and returned.
166166

167+
The ``__main__`` module must be importable by worker subprocesses. This means
168+
that :class:`ProcessPoolExecutor` will not work in the interactive interpreter.
169+
167170
Calling :class:`Executor` or :class:`Future` methods from a callable submitted
168171
to a :class:`ProcessPoolExecutor` will result in deadlock.
169172

0 commit comments

Comments
 (0)