Skip to content

gh-117961: Fix grammar production for multiplicative operators#145636

Closed
anand-official wants to merge 1 commit intopython:mainfrom
anand-official:anand-official-patch-1
Closed

gh-117961: Fix grammar production for multiplicative operators#145636
anand-official wants to merge 1 commit intopython:mainfrom
anand-official:anand-official-patch-1

Conversation

@anand-official
Copy link

@anand-official anand-official commented Mar 8, 2026

Fixes #117961

This PR corrects the grammar production for the multiplicative operator @ (matmul) in the expressions documentation.

The right-hand operand of the @ operator should be u_expr (unary expression), not m_expr (multiplicative expression), as per the grammar specification.

Changed line 1570 in Doc/reference/expressions.rst:

  • Before: m_expr "@" m_expr
  • After: m_expr "@" u_expr

📚 Documentation preview 📚: https://cpython-previews--145636.org.readthedocs.build/

@python-cla-bot
Copy link

python-cla-bot bot commented Mar 8, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app bedevere-app bot added docs Documentation in the Doc dir skip news awaiting review labels Mar 8, 2026
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Mar 8, 2026
@anand-official anand-official changed the title Fix grammar production for multiplicative operators gh-117961: Fix grammar production for multiplicative operators Mar 8, 2026
@da-woods
Copy link
Contributor

da-woods commented Mar 8, 2026

This is identical to the earlier PR #138847.

@StanFromIreland
Copy link
Member

I knew I remembered this from somewhere... please don't open duplicate PRs, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

Associativity of matmul unclear from grammar for m_expr

3 participants