Skip to content

Improve grammar description for the match statement #114172

Closed

Description

@skirpichev

See #114070 (comment) by @hugovk. Right now we have here:

$ make -C Doc html SPHINXERRORHANDLING=-n SOURCES="reference/compound_stmts.rst"
Doc/reference/compound_stmts.rst:601: WARNING: 'token' reference target not found: python-grammar:star_named_expression
Doc/reference/compound_stmts.rst:601: WARNING: 'token' reference target not found: python-grammar:star_named_expressions
Doc/reference/compound_stmts.rst:601: WARNING: 'token' reference target not found: python-grammar:named_expression
Doc/reference/compound_stmts.rst:601: WARNING: 'token' reference target not found: python-grammar:block
Doc/reference/compound_stmts.rst:693: WARNING: 'token' reference target not found: python-grammar:named_expression
Doc/reference/compound_stmts.rst:835: WARNING: 'token' reference target not found: python-grammar:signed_number
Doc/reference/compound_stmts.rst:835: WARNING: 'token' reference target not found: python-grammar:signed_number
Doc/reference/compound_stmts.rst:835: WARNING: 'token' reference target not found: python-grammar:signed_number
Doc/reference/compound_stmts.rst:835: WARNING: 'token' reference target not found: python-grammar:strings
Doc/reference/compound_stmts.rst:835: WARNING: 'token' reference target not found: python-grammar:signed_number

Some rules are not clear without reading the full grammar specification. Perhaps, we can do better.

Activity

  1. Laleee commented on Jul 13, 2024

    @Laleee

    Yes, I agree. We can do better!

  2. StanFromIreland commented on Jun 24, 2026

    @StanFromIreland
    Member

    The current grammar:

    Image

    seems fine to me, can this be closed?

  3. removed
    pendingThe issue will be closed if no feedback is provided
    on Jun 25, 2026
  4. skirpichev commented on Jun 25, 2026

    @skirpichev
    MemberAuthor

    Thanks, looks fixed. I assume you verified that there are no sphinx warnings.

    I checked other descriptions in that part of the reference. No broken links.

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 dir

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions