Skip to content

Conversation

guan404ming
Copy link

@guan404ming guan404ming commented Sep 12, 2025

The binary arithmetic operations grammar incorrectly showed the @ operator as right-associative (m_expr "@" m_expr) while all other multiplicative operators are left-associative (m_expr "*" u_expr).

According to PEP 465, the @ operator should have the same associativity as *. The actual parser implementation in Grammar/python.gram correctly implements left-associativity, but the documentation was inconsistent.


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

@python-cla-bot
Copy link

python-cla-bot bot commented Sep 12, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app

This comment was marked as resolved.

@bedevere-app

This comment was marked as resolved.

@bedevere-app

This comment was marked as resolved.

@guan404ming
Copy link
Author

Should I add NEWS entry here? I think the change only has little change for users so I didn’t add it for now. If needed, please kindly let me know, thanks!

@bedevere-app

This comment was marked as resolved.

@StanFromIreland
Copy link
Member

Please stop updating the branch, it uses up valuable resources.

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