Skip to content

Commit d582edf

Browse files
authored
Fix docs on conditional expression grouping (GH-96447)
1 parent cc0f3a1 commit d582edf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/expressions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1889,7 +1889,7 @@ The following table summarizes the operator precedence in Python, from highest
18891889
precedence (most binding) to lowest precedence (least binding). Operators in
18901890
the same box have the same precedence. Unless the syntax is explicitly given,
18911891
operators are binary. Operators in the same box group left to right (except for
1892-
exponentiation, which groups from right to left).
1892+
exponentiation and conditional expressions, which group from right to left).
18931893

18941894
Note that comparisons, membership tests, and identity tests, all have the same
18951895
precedence and have a left-to-right chaining feature as described in the

0 commit comments

Comments
 (0)