Skip to content

Documentation Bug in Language Reference 6.2.4 #157365

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

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

    docsDocumentation in the Doc dirpendingThe issue will be closed if no feedback is provided

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions