Skip to content

Raise an ImportWarning when __spec__.parent/__package__ isn't defined for a relative import #69977

@brettcannon

Description

@brettcannon
BPO 25791
Nosy @brettcannon, @ncoghlan, @pitrou, @scoder, @ericsnowcurrently
Files
  • issue25791.patch
  • issue25791_2.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 = 'https://github.com/brettcannon'
    closed_at = <Date 2016-01-22.23:27:30.158>
    created_at = <Date 2015-12-03.20:48:12.375>
    labels = ['interpreter-core', 'type-feature']
    title = "Raise an ImportWarning when __spec__.parent/__package__ isn't defined for a relative import"
    updated_at = <Date 2017-06-26.21:50:10.205>
    user = 'https://github.com/brettcannon'

    bugs.python.org fields:

    activity = <Date 2017-06-26.21:50:10.205>
    actor = 'scoder'
    assignee = 'brett.cannon'
    closed = True
    closed_date = <Date 2016-01-22.23:27:30.158>
    closer = 'brett.cannon'
    components = ['Interpreter Core']
    creation = <Date 2015-12-03.20:48:12.375>
    creator = 'brett.cannon'
    dependencies = []
    files = ['41609', '41611']
    hgrepos = []
    issue_num = 25791
    keywords = ['patch']
    message_count = 19.0
    messages = ['255838', '258171', '258172', '258173', '258178', '258329', '258330', '258354', '258400', '258842', '294632', '294652', '294653', '294656', '294657', '294668', '294677', '294678', '296951']
    nosy_count = 7.0
    nosy_names = ['brett.cannon', 'ncoghlan', 'pitrou', 'scoder', 'python-dev', 'eric.snow', 'superluser']
    pr_nums = []
    priority = 'low'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue25791'
    versions = ['Python 3.6']

    Metadata

    Metadata

    Assignees

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions