Skip to content

Disallow ambiguous syntax f(x for x in [1],) #76193

@serhiy-storchaka

Description

@serhiy-storchaka
BPO 32012
Nosy @gvanrossum, @brettcannon, @ncoghlan, @benjaminp, @serhiy-storchaka, @cryvate, @miss-islington
PRs
  • bpo-32012: Disallow trailing comma after genexpr without parenthesis. #4382
  • bpo-32023: Disallow genexprs without parenthesis in class definitions. #4400
  • [3.7] Revert "closes bpo-27494: Fix 2to3 handling of trailing comma after a generator expression (GH-3771)" (GH-8241) #8580
  • 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 2017-11-15.08:16:39.988>
    created_at = <Date 2017-11-12.22:29:02.776>
    labels = ['interpreter-core', 'type-feature', '3.7']
    title = 'Disallow ambiguous syntax f(x for x in [1],)'
    updated_at = <Date 2018-07-31.06:52:51.418>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2018-07-31.06:52:51.418>
    actor = 'miss-islington'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-11-15.08:16:39.988>
    closer = 'ncoghlan'
    components = ['Interpreter Core']
    creation = <Date 2017-11-12.22:29:02.776>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32012
    keywords = ['patch']
    message_count = 24.0
    messages = ['306132', '306145', '306149', '306159', '306160', '306161', '306179', '306185', '306198', '306199', '306200', '306204', '306206', '306207', '306208', '306209', '306211', '306212', '306213', '306233', '306255', '306256', '322730', '322733']
    nosy_count = 7.0
    nosy_names = ['gvanrossum', 'brett.cannon', 'ncoghlan', 'benjamin.peterson', 'serhiy.storchaka', 'cryvate', 'miss-islington']
    pr_nums = ['4382', '4400', '8580']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue32012'
    versions = ['Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifeinterpreter-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