Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frozen modules are on by default in dev build #91173

Closed
gvanrossum opened this issue Mar 14, 2022 · 1 comment · Fixed by #92023
Closed

frozen modules are on by default in dev build #91173

gvanrossum opened this issue Mar 14, 2022 · 1 comment · Fixed by #92023
Assignees
Labels
3.11 only security fixes type-bug An unexpected behavior, bug, or error

Comments

@gvanrossum
Copy link
Member

BPO 47017
Nosy @gvanrossum, @ericsnowcurrently

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = None
created_at = <Date 2022-03-14.22:25:32.472>
labels = ['type-bug', '3.11']
title = 'frozen modules are on by default in dev build'
updated_at = <Date 2022-03-14.22:25:59.205>
user = 'https://github.com/gvanrossum'

bugs.python.org fields:

activity = <Date 2022-03-14.22:25:59.205>
actor = 'gvanrossum'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = []
creation = <Date 2022-03-14.22:25:32.472>
creator = 'gvanrossum'
dependencies = []
files = []
hgrepos = []
issue_num = 47017
keywords = []
message_count = 1.0
messages = ['415203']
nosy_count = 2.0
nosy_names = ['gvanrossum', 'eric.snow']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue47017'
versions = ['Python 3.11']

@gvanrossum
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.11 only security fixes type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants