]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
More actionable error message when spawn is incorrectly used. (#102203)
authorYuxin Wu <ppwwyyxxc@gmail.com>
Wed, 16 Aug 2023 01:03:45 +0000 (18:03 -0700)
committerGitHub <noreply@github.com>
Wed, 16 Aug 2023 01:03:45 +0000 (18:03 -0700)
Co-authored-by: Yuxin Wu <ppwwyyxx@users.noreply.github.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Lib/multiprocessing/spawn.py

index f1af7709104714e12e05d2416b94c20b344c1c30..daac1ecc34b55ecd582d8571ea4083769b884870 100644 (file)
@@ -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):