Skip to content

With '*args' or even bare '*' in def/call argument list, trailing comma causes SyntaxError #54891

@zuo

Description

@zuo
mannequin
BPO 10682
Nosy @loewis, @brettcannon, @rhettinger, @mdickinson, @gst, @mlissner
Superseder
  • bpo-9232: Allow trailing comma in any function argument list.
  • 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 2010-12-12.20:51:06.497>
    created_at = <Date 2010-12-12.04:29:59.913>
    labels = ['interpreter-core', 'type-feature']
    title = "With '*args' or even bare '*' in def/call argument list, trailing comma causes SyntaxError"
    updated_at = <Date 2016-03-29.18:48:27.058>
    user = 'https://bugs.python.org/zuo'

    bugs.python.org fields:

    activity = <Date 2016-03-29.18:48:27.058>
    actor = 'Mike.Lissner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2010-12-12.20:51:06.497>
    closer = 'loewis'
    components = ['Interpreter Core']
    creation = <Date 2010-12-12.04:29:59.913>
    creator = 'zuo'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 10682
    keywords = []
    message_count = 9.0
    messages = ['123823', '123824', '123825', '123828', '123847', '123848', '123850', '246696', '262619']
    nosy_count = 7.0
    nosy_names = ['loewis', 'brett.cannon', 'rhettinger', 'mark.dickinson', 'zuo', 'gstarck', 'Mike.Lissner']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = None
    status = 'closed'
    superseder = '9232'
    type = 'enhancement'
    url = 'https://bugs.python.org/issue10682'
    versions = ['Python 3.3']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      interpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions