Skip to content

inspect.findsource raises exception with empty __init__.py #71765

@atodorov

Description

@atodorov
mannequin
BPO 27578
Nosy @terryjreedy, @bitdancer, @ztane, @kernc, @atodorov
PRs
  • gh-71765: Fix inspect.getsource() on empty file #20809
  • 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 2016-07-20.12:05:58.309>
    labels = ['type-bug', 'library', '3.10']
    title = 'inspect.findsource raises exception with empty __init__.py'
    updated_at = <Date 2020-11-14.03:03:41.490>
    user = 'https://github.com/atodorov'

    bugs.python.org fields:

    activity = <Date 2020-11-14.03:03:41.490>
    actor = 'kernc'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2016-07-20.12:05:58.309>
    creator = 'Alexander Todorov'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 27578
    keywords = ['patch']
    message_count = 7.0
    messages = ['270867', '270871', '270911', '270912', '270925', '373075', '380954']
    nosy_count = 5.0
    nosy_names = ['terry.reedy', 'r.david.murray', 'ztane', 'kernc', 'Alexander Todorov']
    pr_nums = ['20809']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue27578'
    versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

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

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions