diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-08-16 12:22:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-16 12:22:22 (GMT) |
commit | c2fb25a7145cbb6bbe92de28a230e963fe4d696f (patch) | |
tree | aa490a902240f5f68af04fe7cb9ddb6c379a10cc | |
parent | 5d9f20a06c6ad3f1d7812e098717b1c6f7c673fa (diff) | |
download | cpython-c2fb25a7145cbb6bbe92de28a230e963fe4d696f.zip cpython-c2fb25a7145cbb6bbe92de28a230e963fe4d696f.tar.gz cpython-c2fb25a7145cbb6bbe92de28a230e963fe4d696f.tar.bz2 |
[3.12] More actionable error message when spawn is incorrectly used. (GH-102203) (#107990)
More actionable error message when spawn is incorrectly used. (GH-102203)
(cherry picked from commit a794ebeb028f7ef287c780d3890f816db9c21c51)
Co-authored-by: Yuxin Wu <ppwwyyxxc@gmail.com>
Co-authored-by: Yuxin Wu <ppwwyyxx@users.noreply.github.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
-rw-r--r-- | Lib/multiprocessing/spawn.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/multiprocessing/spawn.py b/Lib/multiprocessing/spawn.py index f1af770..daac1ec 100644 --- a/Lib/multiprocessing/spawn.py +++ b/Lib/multiprocessing/spawn.py @@ -150,7 +150,11 @@ def _check_not_importing_main(): ... The "freeze_support()" line can be omitted if the program - is not going to be frozen to produce an executable.''') + is not going to be frozen to produce an executable. + + To fix this issue, refer to the "Safe importing of main module" + section in https://docs.python.org/3/library/multiprocessing.html + ''') def get_preparation_data(name): |