8000 gh-80334: Doc/library/multiprocessing.rst: freeze_support: Change to … · python/cpython@1814cda · GitHub
[go: up one dir, main page]

Skip to content

Commit 1814cda

Browse files
committed
gh-80334: Doc/library/multiprocessing.rst: freeze_support: Change to specify spawn method instead of platform
1 parent 1a07a01 commit 1814cda

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Doc/library/multiprocessing.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ Miscellaneous
10811081
.. function:: freeze_support()
10821082

10831083
Add support for when a program which uses :mod:`multiprocessing` has been
1084-
frozen to produce a Windows executable. (Has been tested with **py2exe**,
1084+
frozen to produce an executable. (Has been tested with **py2exe**,
10851085
**PyInstaller** and **cx_Freeze**.)
10861086

10871087
One needs to call this function straight after the ``if __name__ ==
@@ -1099,9 +1099,8 @@ Miscellaneous
10991099
If the ``freeze_support()`` line is omitted then trying to run the frozen
11001100
executable will raise :exc:`RuntimeError`.
11011101

1102-
Calling ``freeze_support()`` has no effect when invoked on any operating
1103-
system other than Windows. In addition, if the module is being run
1104-
normally by the Python interpreter on Windows (the program has not been
1102+
Calling ``freeze_support()`` has no effect when the start method is not *spawn*. In addition, if the module is being run
1103+
normally by the Python interpreter (the program has not been
11051104
frozen), then ``freeze_support()`` has no effect.
11061105

11071106
.. function:: get_all_start_methods()

0 commit comments

Comments
 (0)
0