Skip to content

importlib.find_spec raises AttributeError when parent is not a package/module #74621

@tkhyn

Description

@tkhyn
mannequin
BPO 30436
Nosy @brettcannon, @ncoghlan, @ned-deily, @ericsnowcurrently, @zvyn, @tkhyn, @miss-islington
PRs
  • bpo-30436: Fix exception raised for invalid parent. #1899
  • bpo-30436: Add missing space in importlib.util.find_spec() error message #7385
  • [3.7] bpo-30436: Add missing space in importlib.util.find_spec() error message (GH-7385) #7469
  • 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 2017-06-14.21:35:16.081>
    created_at = <Date 2017-05-23.00:47:04.511>
    labels = ['3.7', 'type-bug', 'library']
    title = 'importlib.find_spec raises AttributeError when parent is not a package/module'
    updated_at = <Date 2018-06-07.06:21:45.463>
    user = 'https://github.com/tkhyn'

    bugs.python.org fields:

    activity = <Date 2018-06-07.06:21:45.463>
    actor = 'miss-islington'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-06-14.21:35:16.081>
    closer = 'brett.cannon'
    components = ['Library (Lib)']
    creation = <Date 2017-05-23.00:47:04.511>
    creator = 'tkhyn'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 30436
    keywords = []
    message_count = 8.0
    messages = ['294209', '294280', '294281', '294383', '294903', '296041', '318895', '318898']
    nosy_count = 7.0
    nosy_names = ['brett.cannon', 'ncoghlan', 'ned.deily', 'eric.snow', 'zvyn', 'tkhyn', 'miss-islington']
    pr_nums = ['1899', '7385', '7469']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue30436'
    versions = ['Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions