Skip to content

inspect.getsource with some lambdas in decorators does not get the full source #91029

@ahopkins

Description

@ahopkins
mannequin
BPO 46873
Nosy @1st1, @AlexWaygood, @ahopkins
PRs
  • bpo-46873: Fix inspect.getsource - Count parentheses open/close in decorators #31605
  • 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 2022-02-28.05:55:53.454>
    created_at = <Date 2022-02-27.13:15:29.010>
    labels = ['type-bug', 'library', '3.9', '3.10']
    title = 'inspect.getsource with some lambdas in decorators does not get the full source'
    updated_at = <Date 2022-02-28.05:55:53.453>
    user = 'https://github.com/ahopkins'

    bugs.python.org fields:

    activity = <Date 2022-02-28.05:55:53.453>
    actor = 'ahopkins'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-02-28.05:55:53.454>
    closer = 'ahopkins'
    components = ['Library (Lib)']
    creation = <Date 2022-02-27.13:15:29.010>
    creator = 'ahopkins'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46873
    keywords = ['patch']
    message_count = 4.0
    messages = ['414149', '414154', '414156', '414174']
    nosy_count = 3.0
    nosy_names = ['yselivanov', 'AlexWaygood', 'ahopkins']
    pr_nums = ['31605']
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue46873'
    versions = ['Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.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