Kaydet (Commit) b8ac0096 authored tarafından Fred Drake's avatar Fred Drake

Fix the operator precedence table: exponentiation binds tighter than

negation.

This closes SF bug #421999.
üst 251ebe7d
...@@ -939,11 +939,11 @@ left). ...@@ -939,11 +939,11 @@ left).
\hline \hline
\lineii{\code{*}, \code{/}, \code{\%}} \lineii{\code{*}, \code{/}, \code{\%}}
{Multiplication, division, remainder} {Multiplication, division, remainder}
\hline
\lineii{\code{**}} {Exponentiation}
\hline \hline
\lineii{\code{+\var{x}}, \code{-\var{x}}} {Positive, negative} \lineii{\code{+\var{x}}, \code{-\var{x}}} {Positive, negative}
\lineii{\code{\~\var{x}}} {Bitwise not} \lineii{\code{\~\var{x}}} {Bitwise not}
\hline
\lineii{\code{**}} {Exponentiation}
\hline \hline
\lineii{\code{\var{x}.\var{attribute}}} {Attribute reference} \lineii{\code{\var{x}.\var{attribute}}} {Attribute reference}
\lineii{\code{\var{x}[\var{index}]}} {Subscription} \lineii{\code{\var{x}[\var{index}]}} {Subscription}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment