diff options
author | Fred Drake <fdrake@acm.org> | 2001-05-09 16:51:49 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-05-09 16:51:49 (GMT) |
commit | b8ac0096b223ce6912d883884ad175d24ac40f15 (patch) | |
tree | 054e995fabcb43fe0a3511c37d12d3dbcc560b87 /Doc | |
parent | 251ebe7d3015913c4c0758cf78353952e8b7485d (diff) | |
download | cpython-b8ac0096b223ce6912d883884ad175d24ac40f15.zip cpython-b8ac0096b223ce6912d883884ad175d24ac40f15.tar.gz cpython-b8ac0096b223ce6912d883884ad175d24ac40f15.tar.bz2 |
Fix the operator precedence table: exponentiation binds tighter than
negation.
This closes SF bug #421999.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/ref/ref5.tex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/ref/ref5.tex b/Doc/ref/ref5.tex index ec0c6b1..9590ee4 100644 --- a/Doc/ref/ref5.tex +++ b/Doc/ref/ref5.tex @@ -940,11 +940,11 @@ left). \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} \lineii{\code{\var{x}[\var{index}:\var{index}]}} {Slicing} |