Skip to content

Documentation Bug in Language Reference 6.2.4 #157365

Closed as duplicate
Closed as duplicate

Description

@fufufuyangyang-stack

Documentation

There is an obvious error in the formal specification of Python syntax in Python Language Reference 6.2.4:
parenth_form: "(" [starred_expression] ")"

A parenth_form should be a list.
Example :
(True, x:=1, *(4, y:=2))

According to the section 6.15, starred_expression is a subcase of flexible_expression.
So the suggested correction:
parenth_form: "(" [flexible_expression_list] ")"

Activity

  1. added
    docs
    on Sep 12, 2026
  2. StanFromIreland commented on Sep 12, 2026

    @StanFromIreland
    Member

    This was fixed for 3.15+ in 55f2518. But that wasn't backported due to conflicts.

    CC @encukou

  3. added
    pending
    on Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docspending

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions