Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1814cda

Browse files
committed
gh-80334: Doc/library/multiprocessing.rst: freeze_support: Change to specify spawn method instead of platform
1 parent1a07a01 commit1814cda

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 producea Windows executable. (Has been tested with **py2exe**,
1084+
frozen to producean 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)

[8]ページ先頭

©2009-2025 Movatter.jp