Skip to content

frozen modules are on by default in dev buildย #91173

Closed

Description

@gvanrossum
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']

Activity

  1. gvanrossum commented on Mar 14, 2022

    @gvanrossum
    MemberAuthor

    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.

  2. added
    3.11only security fixes
    type-bugAn unexpected behavior, bug, or error
    on Mar 14, 2022
  3. transferred this issue fromon Apr 10, 2022
  4. added a commit that references this issue on Apr 28, 2022
  5. added a commit that references this issue on May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

3.11only security fixestype-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions