Skip to content

Aliasing import of sub-{module,package} from the package raises AttributeError on import. #67392

@franck

Description

@franck
mannequin
BPO 23203
Nosy @brettcannon, @ncoghlan, @ezio-melotti, @ericsnowcurrently, @serhiy-storchaka
Superseder
  • bpo-30024: Treat import a.b.c as m as m = sys.modules['a.b.c']
  • 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 = <Date 2018-03-22.12:24:45.746>
    created_at = <Date 2015-01-09.06:44:42.751>
    labels = ['interpreter-core', 'type-bug']
    title = 'Aliasing import of sub-{module,package} from the package raises AttributeError on import.'
    updated_at = <Date 2018-03-22.12:24:45.745>
    user = 'https://bugs.python.org/franck'

    bugs.python.org fields:

    activity = <Date 2018-03-22.12:24:45.745>
    actor = 'ncoghlan'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-03-22.12:24:45.746>
    closer = 'ncoghlan'
    components = ['Interpreter Core']
    creation = <Date 2015-01-09.06:44:42.751>
    creator = 'franck'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 23203
    keywords = []
    message_count = 8.0
    messages = ['233719', '233744', '233768', '233815', '233823', '297476', '314245', '314249']
    nosy_count = 7.0
    nosy_names = ['brett.cannon', 'ncoghlan', 'ezio.melotti', 'Arfrever', 'eric.snow', 'serhiy.storchaka', 'franck']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = 'resolved'
    status = 'closed'
    superseder = '30024'
    type = 'behavior'
    url = 'https://bugs.python.org/issue23203'
    versions = []

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      interpreter-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