Skip to content

linecache cannot get source for the __main__ module with a custom loader #86291

@eltoder

Description

@eltoder
mannequin
BPO 42125
Nosy @ncoghlan, @vstinner, @eltoder, @FFY00
PRs
  • gh-86291: linecache: get module name from __spec__ if available #22908
  • Files
  • t.zip
  • 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 2020-10-23.05:26:53.150>
    labels = ['type-bug', 'library', '3.10']
    title = 'linecache cannot get source for the __main__ module with a custom loader'
    updated_at = <Date 2021-05-29.17:12:41.769>
    user = 'https://github.com/eltoder'

    bugs.python.org fields:

    activity = <Date 2021-05-29.17:12:41.769>
    actor = 'FFY00'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2020-10-23.05:26:53.150>
    creator = 'eltoder'
    dependencies = []
    files = ['49536']
    hgrepos = []
    issue_num = 42125
    keywords = ['patch']
    message_count = 1.0
    messages = ['379408']
    nosy_count = 5.0
    nosy_names = ['ncoghlan', 'vstinner', 'python-dev', 'eltoder', 'FFY00']
    pr_nums = ['22908']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue42125'
    versions = ['Python 3.10']

    Linked PRs

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.11only security fixes3.12only security fixes3.13bugs and 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