Skip to content

inspect.findsource raises IndexError #61935

Description

@KyleSimpson
BPO 17735
Nosy @jaraco, @taleinat, @bitdancer, @miss-islington, @iritkatriel
PRs
  • bpo-17735: make inspect.findsource raise OsError instead of IndexError wh… #23633
  • [3.9] bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range (GH-23633) #23646
  • [3.8] bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range (GH-23633) #23647
  • 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 2020-12-04.22:43:17.342>
    created_at = <Date 2013-04-15.12:52:19.969>
    labels = ['3.8', 'type-bug', 'library', '3.9', '3.10']
    title = 'inspect.findsource raises IndexError'
    updated_at = <Date 2020-12-04.22:43:17.341>
    user = 'https://bugs.python.org/KyleSimpson'

    bugs.python.org fields:

    activity = <Date 2020-12-04.22:43:17.341>
    actor = 'taleinat'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-12-04.22:43:17.342>
    closer = 'taleinat'
    components = ['Library (Lib)']
    creation = <Date 2013-04-15.12:52:19.969>
    creator = 'Kyle.Simpson'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 17735
    keywords = ['patch']
    message_count = 10.0
    messages = ['186983', '186991', '187047', '217950', '382444', '382445', '382531', '382533', '382541', '382543']
    nosy_count = 6.0
    nosy_names = ['jaraco', 'taleinat', 'r.david.murray', 'Kyle.Simpson', 'miss-islington', 'iritkatriel']
    pr_nums = ['23633', '23646', '23647']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue17735'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.8 (EOL)end of life3.9 (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