From 0353aac3a854ffc02a9643503cad3a3b68ba5c69 Mon Sep 17 00:00:00 2001 From: Andrew Kay <32057631+kaya3@users.noreply.github.com> Date: Wed, 28 Sep 2022 03:57:32 +0100 Subject: [PATCH] Fix docs on conditional expression grouping (GH-96447) (cherry picked from commit d582edf0be9251774722a00456b888ec3793b757) Co-authored-by: Andrew Kay <32057631+kaya3@users.noreply.github.com> --- Doc/reference/expressions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index edba1c834a5a2b..6d23e473cdcd41 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -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