Skip to content

Add __file__ attribute to frozen modules#65935

@malemburg

Description

@malemburg
BPO21736
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=Noneclosed_at=Nonecreated_at=<Date2014-06-12.16:14:48.985>labels= ['interpreter-core', 'type-bug', 'library', '3.11'] title='Add __file__ attribute to frozen modules'updated_at=<Date2021-10-28.19:08:33.132>user='https://github.com/malemburg'

    bugs.python.org fields:

    activity=<Date2021-10-28.19:08:33.132>actor='eric.snow'assignee='none'closed=Falseclosed_date=Nonecloser=Nonecomponents= ['Interpreter Core', 'Library (Lib)'] creation=<Date2014-06-12.16:14:48.985>creator='lemburg'dependencies= [] files= ['35595'] hgrepos= [] issue_num=21736keywords= ['patch'] message_count=13.0messages= ['220362', '220365', '220367', '220368', '220586', '220598', '220623', '401906', '403953', '403954', '404168', '404228', '405228'] nosy_count=6.0nosy_names= ['lemburg', 'gvanrossum', 'barry', 'gregory.p.smith', 'ncoghlan', 'eric.snow'] pr_nums= ['28335', '28655', '28656'] priority='normal'resolution=Nonestage='needs patch'status='open'superseder=Nonetype='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)stdlibStandard Library Python modules in the Lib/ directorytopic-importlibtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions