python / python/cpython

Python `functools.wraps` doesn't deal with defaults correctly

Open
#85,404 15 comments 0 reactions 1 assignee View on GitHub

@ncoghlan is already working on this.

Since Jul 8, 2020.

3.10 stdlib type-feature
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

BPO 41232
Nosy @terryjreedy, @gpshead, @ncoghlan, @JelleZijlstra, @cdonovick, @thorwhalen, @domdfcoding
PRs
  • python/cpython#21379
  • 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/ncoghlan'
    closed_at = None
    created_at = <Date 2020-07-07.22:00:22.478>
    labels = ['type-feature', '3.10']
    title = "Python `functools.wraps` doesn't deal with defaults correctly"
    updated_at = <Date 2021-05-03.19:52:34.043>
    user = 'https://github.com/thorwhalen'
    

    bugs.python.org fields:

    activity = <Date 2021-05-03.19:52:34.043>
    actor = 'Thor Whalen'
    assignee = 'ncoghlan'
    closed = False
    closed_date = None
    closer = None
    components = []
    creation = <Date 2020-07-07.22:00:22.478>
    creator = 'Thor Whalen2'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41232
    keywords = ['patch']
    message_count = 15.0
    messages = ['373254', '373255', '373256', '373499', '374818', '374879', '374881', '374900', '392648', '392658', '392660', '392663', '392664', '392665', '392837']
    nosy_count = 8.0
    nosy_names = ['terry.reedy', 'gregory.p.smith', 'ncoghlan', 'JelleZijlstra', 'donovick', 'Thor Whalen', 'Thor Whalen2', 'domdfcoding']
    pr_nums = ['21379']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue41232'
    versions = ['Python 3.10']
    

    Contributor guide

    Open the contributing guide

    First steps

    1. Read the whole issue, then the project's contributing guide.
    2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
    3. Fork the repository and make your change on a branch.
    4. Open a pull request that references the issue number.

    Assessment

    This issue has not been assessed yet.

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.