[issue43837] Operator precedence documentation could be more clear
Ammar Askar
report at bugs.python.org
Mon Apr 19 00:55:30 EDT 2021
Ammar Askar <ammar at ammaraskar.com> added the comment:
Opened https://github.com/python/cpython/pull/25469 for the first suggestion of reversing the precedence table order since it seems like a good improvement. I think the tight binding to weak order is more natural and aside from K&R, the following other languages also follow the same ordering:
* Javascript - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence#table
* PHP - https://www.php.net/manual/en/language.operators.precedence.php
* Rust - https://doc.rust-lang.org/reference/expressions.html#expression-precedence
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43837>
_______________________________________
More information about the Python-bugs-list
mailing list