Skip to content

update the import machinery to only use __spec__ #65961

Description

@ericsnowcurrently
BPO21762
Nosy@warsaw, @brettcannon, @ncoghlan, @ericsnowcurrently, @nanjekyejoannah
Dependencies
  • bpo-25791: Raise an ImportWarning when spec.parent/package isn't defined for a relative import
  • bpo-42132: Use specs instead of just loader in C code
  • 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='https://github.com/brettcannon'closed_at=Nonecreated_at=<Date2014-06-14.21:33:51.833>labels= ['interpreter-core', 'type-feature']
    title='update the import machinery to only use __spec__'updated_at=<Date2022-02-04.20:50:24.662>user='https://github.com/ericsnowcurrently'

    bugs.python.org fields:

    activity=<Date2022-02-04.20:50:24.662>actor='brett.cannon'assignee='brett.cannon'closed=Falseclosed_date=Nonecloser=Nonecomponents= ['Interpreter Core']
    creation=<Date2014-06-14.21:33:51.833>creator='eric.snow'dependencies= ['25791', '42132']
    files= []
    hgrepos= []
    issue_num=21762keywords= []
    message_count=13.0messages= ['220581', '220597', '220606', '220610', '258332', '258357', '258398', '258440', '258443', '258844', '258845', '379490', '412537']
    nosy_count=5.0nosy_names= ['barry', 'brett.cannon', 'ncoghlan', 'eric.snow', 'nanjekyejoannah']
    pr_nums= []
    priority='low'resolution=Nonestage='needs patch'status='open'superseder=Nonetype='enhancement'url='https://bugs.python.org/issue21762'versions= ['Python 3.6']

    Linked PRs

    Metadata

    Metadata

    Assignees

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions