File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1089,10 +1089,14 @@ Miscellaneous
1089
1089
.. versionchanged :: 3.11
1090
1090
Accepts a :term: `path-like object `.
1091
1091
1092
- .. function :: set_start_method(method)
1092
+ .. function :: set_start_method(method, force=False )
1093
1093
1094
1094
Set the method which should be used to start child processes.
1095
- *method * can be ``'fork' ``, ``'spawn' `` or ``'forkserver' ``.
1095
+ The *method * argument can be ``'fork' ``, ``'spawn' `` or ``'forkserver' ``.
1096
+ Raises :exc: `RuntimeError ` if the start method has already been set and *force *
1097
+ is not ``True ``. If *method * is ``None `` and *force * is ``True `` then the start
1098
+ method is set to ``None ``. If *method * is ``None `` and *force * is ``False ``
1099
+ then the context is set to the default context.
1096
1100
1097
1101
Note that this should be called at most once, and it should be
1098
1102
protected inside the ``if __name__ == '__main__' `` clause of the
You can’t perform that action at this time.
0 commit comments