mirror of
https://github.com/python/cpython.git
synced 2025-10-03 13:45:29 +00:00
Fix docs on conditional expression grouping (GH-96447) (GH-97606)
This commit is contained in:
parent
f0cbc6c18e
commit
edc3356277
1 changed files with 1 additions and 1 deletions
|
@ -1892,7 +1892,7 @@ The following table summarizes the operator precedence in Python, from highest
|
||||||
precedence (most binding) to lowest precedence (least binding). Operators in
|
precedence (most binding) to lowest precedence (least binding). Operators in
|
||||||
the same box have the same precedence. Unless the syntax is explicitly given,
|
the same box have the same precedence. Unless the syntax is explicitly given,
|
||||||
operators are binary. Operators in the same box group left to right (except for
|
operators are binary. Operators in the same box group left to right (except for
|
||||||
exponentiation, which groups from right to left).
|
exponentiation and conditional expressions, which group from right to left).
|
||||||
|
|
||||||
Note that comparisons, membership tests, and identity tests, all have the same
|
Note that comparisons, membership tests, and identity tests, all have the same
|
||||||
precedence and have a left-to-right chaining feature as described in the
|
precedence and have a left-to-right chaining feature as described in the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue