This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: frozen modules are on by default in dev build
Type: behavior Stage:
Components: Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: eric.snow, gvanrossum
Priority: normal Keywords:

Created on 2022-03-14 22:25 by gvanrossum, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg415203 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2022-03-14 22:25
At least on Windows and macOS, this repro shows that frozen modules are on in a dev build:

Mac:

~/cpython$ ./python.exe -c 'import os; print(os._exists.__code__)'
<code object _exists at 0x10dec7ee0, file "<frozen os>", line 41>

~/cpython$ ./python.exe -Xfrozen_modules=off -c 'import os; print(os._exists.__code__)'
<code object _exists at 0x10e851b50, file "/Users/guido/cpython/Lib/os.py", line 41>

On Windows, the same except use .\python.bat.
History
Date User Action Args
2022-04-11 14:59:57adminsetgithub: 91173
2022-03-14 22:25:59gvanrossumsettype: behavior
versions: + Python 3.11
2022-03-14 22:25:32gvanrossumcreate