Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bab4bbb

Browse files
bbaylesvstinner
authored andcommitted
bpo-32146: Add documentation about frozen executables on Unix (pythonGH-5850)
1 parent 572168a commit bab4bbb

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Doc/library/multiprocessing.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,13 @@ A library which wants to use a particular start method should probably
186186
use :func:`get_context` to avoid interfering with the choice of the
187187
library user.
188188

189+
.. warning::
190+
191+
The ``'spawn'`` and ``'forkserver'`` start methods cannot currently
192+
be used with "frozen" executables (i.e., binaries produced by
193+
packages like **PyInstaller** and **cx_Freeze**) on Unix.
194+
The ``'fork'`` start method does work.
195+
189196

190197
Exchanging objects between processes
191198
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Document the interaction between frozen executables and the spawn and
2+
forkserver start methods in multiprocessing.

0 commit comments

Comments
 (0)