]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix docs on conditional expression grouping (GH-96447) (GH-97606)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 28 Sep 2022 13:45:48 +0000 (06:45 -0700)
committerPablo Galindo <pablogsal@gmail.com>
Sat, 22 Oct 2022 19:05:56 +0000 (20:05 +0100)
Doc/reference/expressions.rst

index 60136cd161fee45cd79f4b237a3b33c85ec2ccfd..4b8ceab5167dbc96719d0f1151120d40f72e941d 100644 (file)
@@ -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
 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