Skip to content

inspect.getsource() returns the wrong lines for coroutine functions #68857

@groner

Description

@groner
mannequin
BPO 24669
Nosy @1st1
Files
  • inspect-getsource-asyncdef.patch: Fix with tests
  • 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 2015-07-21.16:05:16.961>
    created_at = <Date 2015-07-19.13:04:29.403>
    labels = ['type-bug', 'library']
    title = 'inspect.getsource() returns the wrong lines for coroutine functions'
    updated_at = <Date 2015-07-21.16:05:16.959>
    user = 'https://bugs.python.org/groner'

    bugs.python.org fields:

    activity = <Date 2015-07-21.16:05:16.959>
    actor = 'yselivanov'
    assignee = 'none'
    closed = True
    closed_date = <Date 2015-07-21.16:05:16.961>
    closer = 'yselivanov'
    components = ['Library (Lib)']
    creation = <Date 2015-07-19.13:04:29.403>
    creator = 'groner'
    dependencies = []
    files = ['39950']
    hgrepos = []
    issue_num = 24669
    keywords = ['patch']
    message_count = 3.0
    messages = ['246940', '247042', '247043']
    nosy_count = 3.0
    nosy_names = ['python-dev', 'yselivanov', 'groner']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue24669'
    versions = ['Python 3.5', 'Python 3.6']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard 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