Skip to content

Add __file__ attribute to frozen modules #65935

Open
@malemburg

Description

@malemburg
BPO 21736
Nosy @malemburg, @gvanrossum, @warsaw, @gpshead, @ncoghlan, @ericsnowcurrently
PRs
  • bpo-45020: Freeze some of the modules imported during startup. #28335
  • bpo-45020: Identify which frozen modules are actually aliases. #28655
  • bpo-21736: Set __file__ on frozen stdlib modules. #28656
  • Files
  • file-for-frozen-modules.patch
  • 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 2014-06-12.16:14:48.985>
    labels = ['interpreter-core', 'type-bug', 'library', '3.11']
    title = 'Add __file__ attribute to frozen modules'
    updated_at = <Date 2021-10-28.19:08:33.132>
    user = 'https://github.com/malemburg'

    bugs.python.org fields:

    activity = <Date 2021-10-28.19:08:33.132>
    actor = 'eric.snow'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core', 'Library (Lib)']
    creation = <Date 2014-06-12.16:14:48.985>
    creator = 'lemburg'
    dependencies = []
    files = ['35595']
    hgrepos = []
    issue_num = 21736
    keywords = ['patch']
    message_count = 13.0
    messages = ['220362', '220365', '220367', '220368', '220586', '220598', '220623', '401906', '403953', '403954', '404168', '404228', '405228']
    nosy_count = 6.0
    nosy_names = ['lemburg', 'gvanrossum', 'barry', 'gregory.p.smith', 'ncoghlan', 'eric.snow']
    pr_nums = ['28335', '28655', '28656']
    priority = 'normal'
    resolution = None
    stage = 'needs patch'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue21736'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)stdlibPython modules in the Lib dirtopic-importlibtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions