[New-bugs-announce] [issue47017] frozen modules are on by default in dev build

Guido van Rossum report at bugs.python.org
Mon Mar 14 18:25:32 EDT 2022


New submission from Guido van Rossum <guido at python.org>:

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.

----------
messages: 415203
nosy: eric.snow, gvanrossum
priority: normal
severity: normal
status: open
title: frozen modules are on by default in dev build

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47017>
_______________________________________


More information about the New-bugs-announce mailing list