From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 28 Sep 2022 13:45:48 +0000 (-0700) Subject: Fix docs on conditional expression grouping (GH-96447) (GH-97606) X-Git-Tag: v3.11.0~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=edc3356277ded2fbef14192bc34c4c133a53b8d7;p=thirdparty%2FPython%2Fcpython.git Fix docs on conditional expression grouping (GH-96447) (GH-97606) --- diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 60136cd161fe..4b8ceab5167d 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -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