Skip to content

inspect.getsource does not work with decorated functions #45259

@micheles

Description

@micheles
mannequin
BPO 1764286
Nosy @abalkin, @pitrou, @tiran, @PCManticore, @1st1, @eric-wieser
Files
  • inspect.py.diff
  • inspect_getsource.patch
  • 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 = 'https://github.com/1st1'
    closed_at = <Date 2014-09-26.21:36:35.226>
    created_at = <Date 2007-07-31.10:16:40.000>
    labels = ['type-bug', 'library']
    title = 'inspect.getsource does not work with decorated functions'
    updated_at = <Date 2018-08-02.06:34:15.069>
    user = 'https://bugs.python.org/micheles'

    bugs.python.org fields:

    activity = <Date 2018-08-02.06:34:15.069>
    actor = 'Eric.Wieser'
    assignee = 'yselivanov'
    closed = True
    closed_date = <Date 2014-09-26.21:36:35.226>
    closer = 'yselivanov'
    components = ['Library (Lib)']
    creation = <Date 2007-07-31.10:16:40.000>
    creator = 'michele_s'
    dependencies = []
    files = ['9384', '31902']
    hgrepos = []
    issue_num = 1764286
    keywords = ['patch']
    message_count = 12.0
    messages = ['32574', '57779', '60062', '62177', '110708', '110752', '198575', '227654', '227655', '322728', '322775', '322918']
    nosy_count = 10.0
    nosy_names = ['michele_s', 'belopolsky', 'pitrou', 'christian.heimes', 'gpolo', 'ysj.ray', 'Claudiu.Popa', 'python-dev', 'yselivanov', 'Eric.Wieser']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue1764286'
    versions = ['Python 3.5']

    Metadata

    Metadata

    Assignees

    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