]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix docs on conditional expression grouping (GH-96447)
authorAndrew Kay <32057631+kaya3@users.noreply.github.com>
Wed, 28 Sep 2022 02:57:32 +0000 (03:57 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Sep 2022 02:57:32 +0000 (21:57 -0500)
Doc/reference/expressions.rst

index edba1c834a5a2b744963c8a227c5d5df62703afd..6d23e473cdcd41dc1eb024a6ac0f233e99e70a7a 100644 (file)
@@ -1889,7 +1889,7 @@ The following table summarizes the operator precedence in Python, from highest
 precedence (most binding) to lowest precedence (least binding).  Operators in
 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
-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
 precedence and have a left-to-right chaining feature as described in the