From: Fred Drake Date: Wed, 9 May 2001 16:53:19 +0000 (+0000) Subject: Fix the operator precedence table: exponentiation binds tighter than X-Git-Tag: v2.1.1c1~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4a64db94ce836a6a6609d0a14907c7f4e0d89ff8;p=thirdparty%2FPython%2Fcpython.git Fix the operator precedence table: exponentiation binds tighter than negation. This closes SF bug #421999. --- diff --git a/Doc/ref/ref5.tex b/Doc/ref/ref5.tex index 5663daaef288..f2a1d1b58cba 100644 --- a/Doc/ref/ref5.tex +++ b/Doc/ref/ref5.tex @@ -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}