diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-07-28 06:24:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-28 06:24:29 (GMT) |
commit | 4f72a9a2e0b5b44a1a590b112cec2533ca182dff (patch) | |
tree | 4afeeea4247c50ab61a04921492f7fcf4b6366d9 | |
parent | 17ce87ba7f8e4f8c9a5620ebf24a968f742b6e28 (diff) | |
download | cpython-4f72a9a2e0b5b44a1a590b112cec2533ca182dff.zip cpython-4f72a9a2e0b5b44a1a590b112cec2533ca182dff.tar.gz cpython-4f72a9a2e0b5b44a1a590b112cec2533ca182dff.tar.bz2 |
[3.12] gh-106723: forward -Xfrozen_modules option to spawned process interpreters (GH-106724) (#107367)
gh-106723: forward -Xfrozen_modules option to spawned process interpreters (GH-106724)
(cherry picked from commit 3dcac785810df4d9db50abe90847eaf03bbdaaf4)
Co-authored-by: Felipe A. Hernandez <ergoithz@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
-rw-r--r-- | Lib/subprocess.py | 2 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2023-07-13-14-55-45.gh-issue-106723.KsMufQ.rst | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Lib/subprocess.py b/Lib/subprocess.py index fbc76b8..6df5dd5 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -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 index 0000000..207f397 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2023-07-13-14-55-45.gh-issue-106723.KsMufQ.rst @@ -0,0 +1 @@ +Propagate ``frozen_modules`` to multiprocessing spawned process interpreters. |