Commit c684b01
gh-140814: Fix call order in multiprocessing example
Move set_start_method() before freeze_support() in the "Safe importing
of main module" example. freeze_support() internally accesses the start
method context, which causes a subsequent set_start_method() to raise
RuntimeError('context has already been set').
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent cfeede8 commit c684b01
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3238 | 3238 | | |
3239 | 3239 | | |
3240 | 3240 | | |
3241 | | - | |
3242 | 3241 | | |
| 3242 | + | |
3243 | 3243 | | |
3244 | 3244 | | |
3245 | 3245 | | |
| |||
0 commit comments