Skip to content

pyclbr.readmodule_ex traversing "import __main__": dies with ValueError: __main__.__spec__ is None / is not set #87465

@kxrob

Description

@kxrob
mannequin
BPO 43299
Nosy @kxrob, @akulakov
PRs
  • bpo-43299: Make pyclbr.readmodule_ex() not die on module w/o __spec__ #24623
  • 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 = None
    created_at = <Date 2021-02-22.17:48:25.398>
    labels = ['type-bug', 'library', '3.10']
    title = 'pyclbr.readmodule_ex traversing "import __main__": dies with ValueError: __main__.__spec__ is None / is not set'
    updated_at = <Date 2021-07-12.17:42:22.974>
    user = 'https://github.com/kxrob'

    bugs.python.org fields:

    activity = <Date 2021-07-12.17:42:22.974>
    actor = 'andrei.avk'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2021-02-22.17:48:25.398>
    creator = 'kxrob'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 43299
    keywords = ['patch']
    message_count = 7.0
    messages = ['387520', '397054', '397247', '397279', '397280', '397330', '397342']
    nosy_count = 2.0
    nosy_names = ['kxrob', 'andrei.avk']
    pr_nums = ['24623']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue43299'
    versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixesstdlibPython modules in the Lib dirtopic-importlibtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions