Skip to content

Commit

Permalink
bpo-32146: Add documentation about frozen executables on Unix (GH-5850)
Browse files Browse the repository at this point in the history
(cherry picked from commit bab4bbb)

Co-authored-by: Bo Bayles <bbayles@gmail.com>
  • Loading branch information
miss-islington and bbayles committed Jan 10, 2019
1 parent 3e3d57d commit b9cd38f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Doc/library/multiprocessing.rst
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -186,6 +186,13 @@ A library which wants to use a particular start method should probably
use :func:`get_context` to avoid interfering with the choice of the use :func:`get_context` to avoid interfering with the choice of the
library user. library user.


.. warning::

The ``'spawn'`` and ``'forkserver'`` start methods cannot currently
be used with "frozen" executables (i.e., binaries produced by
packages like **PyInstaller** and **cx_Freeze**) on Unix.
The ``'fork'`` start method does work.



Exchanging objects between processes Exchanging objects between processes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,2 @@
Document the interaction between frozen executables and the spawn and
forkserver start methods in multiprocessing.

0 comments on commit b9cd38f

Please sign in to comment.