Skip to content

gh-117961: Fix matmul grammar in expression docs#149281

Open
imsofial wants to merge 1 commit intopython:mainfrom
imsofial:gh-117961-matmul-docs
Open

gh-117961: Fix matmul grammar in expression docs#149281
imsofial wants to merge 1 commit intopython:mainfrom
imsofial:gh-117961-matmul-docs

Conversation

@imsofial
Copy link
Copy Markdown

@imsofial imsofial commented May 2, 2026

Update the documented grammar for the @ operator so that it matches the associativity specified in PEP 465.

The current documentation shows m_expr "@" m_expr, which makes the associativity unclear. Since @ should parse like *, the right-hand side should be u_expr.

@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 2, 2026

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@read-the-docs-community
Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #32509347 | 📁 Comparing 3ab4209 against main (efcac6f)

  🔍 Preview build  

2 files changed
± reference/expressions.html
± whatsnew/changelog.html

Comment thread Lib/pydoc_data/topics.py
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert this change, this file is updated during release.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants