Skip to content

relative import without parent succeeds with builtins.__import__ #81590

Description

@benjimin
mannequin
BPO 37409
Nosy @brettcannon, @ericvsmith, @serhiy-storchaka, @miss-islington, @tirkarthi, @benjimin
PRs
  • [WIP] bpo-37409: Regression tests for builtins/importlib __import__ divergence #14465
  • bpo-37409: fix relative import with no parent #14956
  • [3.8] bpo-37409: fix relative import with no parent (GH-14956) #15913
  • [3.7] bpo-37409: fix relative import with no parent (GH-14956) (GH-15913) #15925
  • bpo-37409: Fix ImportWarning regarding __spec__ and __package__ being None #16003
  • 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 = <Date 2019-09-11.13:04:52.828>
    created_at = <Date 2019-06-26.09:11:26.702>
    labels = ['interpreter-core', 'type-bug', '3.8', '3.9']
    title = 'relative import without parent succeeds with builtins.__import__'
    updated_at = <Date 2019-09-12.09:31:18.058>
    user = 'https://github.com/benjimin'

    bugs.python.org fields:

    activity = <Date 2019-09-12.09:31:18.058>
    actor = 'brett.cannon'
    assignee = 'brett.cannon'
    closed = True
    closed_date = <Date 2019-09-11.13:04:52.828>
    closer = 'brett.cannon'
    components = ['Interpreter Core']
    creation = <Date 2019-06-26.09:11:26.702>
    creator = 'Ben Lewis2'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37409
    keywords = ['patch']
    message_count = 14.0
    messages = ['346593', '346654', '346710', '346781', '346856', '346857', '346861', '346866', '351794', '351832', '351848', '351948', '352004', '352075']
    nosy_count = 6.0
    nosy_names = ['brett.cannon', 'eric.smith', 'serhiy.storchaka', 'miss-islington', 'xtreak', 'Ben Lewis2']
    pr_nums = ['14465', '14956', '15913', '15925', '16003']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue37409'
    versions = ['Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    Labels

    3.8 (EOL)end of life3.9 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions