From: Fred Drake Date: Wed, 9 May 2001 16:51:49 +0000 (+0000) Subject: Fix the operator precedence table: exponentiation binds tighter than X-Git-Tag: v2.2a3~1868 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b8ac0096b223ce6912d883884ad175d24ac40f15;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 ec0c6b160c25..9590ee422159 100644 --- a/Doc/ref/ref5.tex +++ b/Doc/ref/ref5.tex @@ -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}