]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added index entries for operator precedence; suggestion from Randall
authorFred Drake <fdrake@acm.org>
Thu, 29 Apr 1999 16:43:42 +0000 (16:43 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 29 Apr 1999 16:43:42 +0000 (16:43 +0000)
Hopper <rhh@vislab.epa.gov>.

Doc/ref/ref5.tex

index 50d0aee6d1f750290301c16fb24961c9d6906714..77496fe7ec287879d40e49b6ee88c8afe500d3cd 100644 (file)
@@ -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}