]> 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:53:19 +0000 (16:53 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 9 May 2001 16:53:19 +0000 (16:53 +0000)
negation.

This closes SF bug #421999.

Doc/ref/ref5.tex

index 5663daaef288b37a5fddd3a220ace0b287136db7..f2a1d1b58cba731e7f068a851e41133f2b0a5d07 100644 (file)
@@ -937,11 +937,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}