summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-04-29 16:43:42 (GMT)
committerFred Drake <fdrake@acm.org>1999-04-29 16:43:42 (GMT)
commitd09120b5b91ef286c030fcf5e45a9fe324093d2d (patch)
treee38dd9833eee245df4123f3c37710e0fbe296d2f
parent62e80138f4c157eb7ea903b9f566e96031e21a82 (diff)
downloadcpython-d09120b5b91ef286c030fcf5e45a9fe324093d2d.zip
cpython-d09120b5b91ef286c030fcf5e45a9fe324093d2d.tar.gz
cpython-d09120b5b91ef286c030fcf5e45a9fe324093d2d.tar.bz2
Added index entries for operator precedence; suggestion from Randall
Hopper <rhh@vislab.epa.gov>.
-rw-r--r--Doc/ref/ref5.tex18
1 files changed, 10 insertions, 8 deletions
diff --git a/Doc/ref/ref5.tex b/Doc/ref/ref5.tex
index 50d0aee..77496fe 100644
--- a/Doc/ref/ref5.tex
+++ b/Doc/ref/ref5.tex
@@ -846,16 +846,18 @@ tuple, but rather yields the value of that expression (expression).
\code{()}.)
\indexii{trailing}{comma}
+
\section{Summary\label{summary}}
-The following table summarizes the operator precedences in Python,
-from lowest precedence (least binding) to highest precedence (most
-binding). Operators in the same box have the same precedence. Unless
-the syntax is explicitly given, operators are binary. Operators in
-the same box group left to right (except for comparisons, which
-chain from left to right --- see above).
+The following table summarizes the operator
+precedences\indexii{operator}{precedence} in Python, from lowest
+precedence (least binding) to highest precedence (most binding).
+Operators in the same box have the same precedence. Unless the syntax
+is explicitly given, operators are binary. Operators in the same box
+group left to right (except for comparisons, which chain from left to
+right --- see above).
-\begin{tableii}{c|c}{textrm}{Operator}{Description}
+\begin{tableii}{c|l}{textrm}{Operator}{Description}
\lineii{\keyword{lambda}} {Lambda expression}
\hline
\lineii{\keyword{or}} {Boolean OR}
@@ -892,7 +894,7 @@ chain from left to right --- see above).
\lineii{\code{\var{x}[\var{index}]}} {Subscription}
\lineii{\code{\var{x}[\var{index}:\var{index}]}} {Slicing}
\lineii{\code{\var{f}(\var{arguments}...)}} {Function call}
-\hline
+ \hline
\lineii{\code{(\var{expressions}\ldots)}} {Binding or tuple display}
\lineii{\code{[\var{expressions}\ldots]}} {List display}
\lineii{\code{\{\var{key}:\var{datum}\ldots\}}}{Dictionary display}