]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix the operator precedence table: exponentiation binds tighter than
authorFred Drake <fdrake@acm.org>
Wed, 9 May 2001 16:51:49 +0000 (16:51 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 9 May 2001 16:51:49 +0000 (16:51 +0000)
negation.

This closes SF bug #421999.

Doc/ref/ref5.tex

index ec0c6b160c25e13e62260d8050c1a36cbaff494c..9590ee422159889a75367b3847c58e1014ccf037 100644 (file)
@@ -939,11 +939,11 @@ left).
   \hline
     \lineii{\code{*}, \code{/}, \code{\%}}
            {Multiplication, division, remainder}
-  \hline
-    \lineii{\code{**}}                         {Exponentiation}
   \hline
     \lineii{\code{+\var{x}}, \code{-\var{x}}}  {Positive, negative}
     \lineii{\code{\~\var{x}}}                  {Bitwise not}
+  \hline
+    \lineii{\code{**}}                         {Exponentiation}
   \hline
     \lineii{\code{\var{x}.\var{attribute}}}    {Attribute reference}
     \lineii{\code{\var{x}[\var{index}]}}       {Subscription}