Skip to content

Decorator with paren tokens in arguments breaks inspect.getsource #83035

@crusaderky

Description

@crusaderky
BPO 38854
Nosy @PCManticore, @1st1, @tirkarthi, @crusaderky, @AlexWaygood, @ahopkins
PRs
  • bpo-38854: Adjust inspect.getsource to properly extract source for decorated functions #17374
  • 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 = None created_at = <Date 2019-11-19.21:37:42.431> labels = ['type-bug', 'library', '3.9', '3.10'] title = 'Decorator with paren tokens in arguments breaks inspect.getsource' updated_at = <Date 2022-02-28.11:08:51.171> user = 'https://github.com/crusaderky'

    bugs.python.org fields:

    activity = <Date 2022-02-28.11:08:51.171> actor = 'AlexWaygood' assignee = 'none' closed = False closed_date = None closer = None components = ['Library (Lib)'] creation = <Date 2019-11-19.21:37:42.431> creator = 'crusaderky' dependencies = [] files = [] hgrepos = [] issue_num = 38854 keywords = ['patch'] message_count = 2.0 messages = ['356993', '357432'] nosy_count = 6.0 nosy_names = ['Claudiu.Popa', 'yselivanov', 'xtreak', 'crusaderky', 'AlexWaygood', 'ahopkins'] pr_nums = ['17374', '31605'] priority = 'normal' resolution = None stage = 'patch review' status = 'open' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue38854' versions = ['Python 3.9', 'Python 3.10']

    Linked PRs

    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