]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-106723: forward -Xfrozen_modules option to spawned process interpreters (#106724)
authorFelipe A. Hernandez <ergoithz@gmail.com>
Fri, 28 Jul 2023 05:04:26 +0000 (06:04 +0100)
committerGitHub <noreply@github.com>
Fri, 28 Jul 2023 05:04:26 +0000 (05:04 +0000)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Lib/subprocess.py
Misc/NEWS.d/next/Core and Builtins/2023-07-13-14-55-45.gh-issue-106723.KsMufQ.rst [new file with mode: 0644]

index fbc76b8d0f14b2ce6ebedd9aca1b51f47b80210f..6df5dd551ea67e9d9651f636f5a399eae9f999dd 100644 (file)
@@ -346,7 +346,7 @@ def _args_from_interpreter_flags():
     if dev_mode:
         args.extend(('-X', 'dev'))
     for opt in ('faulthandler', 'tracemalloc', 'importtime',
-                'showrefcount', 'utf8'):
+                'frozen_modules', 'showrefcount', 'utf8'):
         if opt in xoptions:
             value = xoptions[opt]
             if value is True:
diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-07-13-14-55-45.gh-issue-106723.KsMufQ.rst b/Misc/NEWS.d/next/Core and Builtins/2023-07-13-14-55-45.gh-issue-106723.KsMufQ.rst
new file mode 100644 (file)
index 0000000..207f397
--- /dev/null
@@ -0,0 +1 @@
+Propagate ``frozen_modules`` to multiprocessing spawned process interpreters.