@@ -535,12 +535,13 @@ Miscellaneous options
535535 location indicators when the interpreter displays tracebacks. See also
536536 :envvar: `PYTHONNODEBUGRANGES `.
537537 * ``-X frozen_modules `` determines whether or not frozen modules are
538- ignored by the import machinery. A value of "on" means they get
539- imported and " off" means they are ignored. The default is "on"
538+ ignored by the import machinery. A value of `` on `` means they get
539+ imported and `` off `` means they are ignored. The default is `` on ``
540540 if this is an installed Python (the normal case). If it's under
541- development (running from the source tree) then the default is "off".
542- Note that the "importlib_bootstrap" and "importlib_bootstrap_external"
543- frozen modules are always used, even if this flag is set to "off".
541+ development (running from the source tree) then the default is ``off ``.
542+ Note that the :mod: `!importlib_bootstrap ` and
543+ :mod: `!importlib_bootstrap_external ` frozen modules are always used, even
544+ if this flag is set to ``off ``. See also :envvar: `PYTHON_FROZEN_MODULES `.
544545 * ``-X perf `` enables support for the Linux ``perf `` profiler.
545546 When this option is provided, the ``perf `` profiler will be able to
546547 report Python calls. This option is only available on some platforms and
@@ -1095,6 +1096,20 @@ conflict.
10951096
10961097 .. versionadded :: 3.13
10971098
1099+ .. envvar :: PYTHON_FROZEN_MODULES
1100+
1101+ If this variable is set to ``on `` or ``off ``, it determines whether or not
1102+ frozen modules are ignored by the import machinery. A value of ``on `` means
1103+ they get imported and ``off `` means they are ignored. The default is ``on ``
1104+ for non-debug builds (the normal case) and ``off `` for debug builds.
1105+ Note that the :mod: `!importlib_bootstrap ` and
1106+ :mod: `!importlib_bootstrap_external ` frozen modules are always used, even
1107+ if this flag is set to ``off ``.
1108+
1109+ See also the :option: `-X frozen_modules <-X> ` command-line option.
1110+
1111+ .. versionadded :: 3.13
1112+
10981113
10991114Debug-mode variables
11001115~~~~~~~~~~~~~~~~~~~~
0 commit comments