Skip to content

Commit

Permalink
gh-106723: forward -Xfrozen_modules option to spawned process interpr…
Browse files Browse the repository at this point in the history
…eters (#106724)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
  • Loading branch information
3 people authored Jul 28, 2023
1 parent 76c26ea commit 3dcac78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Propagate ``frozen_modules`` to multiprocessing spawned process interpreters.

0 comments on commit 3dcac78

Please sign in to comment.