diff options
author | Guido van Rossum <guido@python.org> | 1992-12-17 15:31:02 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-12-17 15:31:02 (GMT) |
commit | 4ac605e6273a3215e67079aac7c50266c216cfa9 (patch) | |
tree | 6011f16734f3bc899dbfdfee4b0a91c0f99ce99f /Doc/ref | |
parent | 16b22193e6677dec27719172e92c0d83cfd28366 (diff) | |
download | cpython-4ac605e6273a3215e67079aac7c50266c216cfa9.zip cpython-4ac605e6273a3215e67079aac7c50266c216cfa9.tar.gz cpython-4ac605e6273a3215e67079aac7c50266c216cfa9.tar.bz2 |
Changes to some math using underscore as subscript, necessary since
the new style file defines underscore as an underscore in tt font.
Diffstat (limited to 'Doc/ref')
-rw-r--r-- | Doc/ref/ref5.tex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/ref/ref5.tex b/Doc/ref/ref5.tex index 34dfeb1..7857e95 100644 --- a/Doc/ref/ref5.tex +++ b/Doc/ref/ref5.tex @@ -523,12 +523,14 @@ evaluated only once (but in both cases $z$ is not evaluated at all when $x < y$ is found to be false). \indexii{chaining}{comparisons} +\catcode`\_=8 Formally, $e_0 op_1 e_1 op_2 e_2 ...e_{n-1} op_n e_n$ is equivalent to $e_0 op_1 e_1$ \verb\and\ $e_1 op_2 e_2$ \verb\and\ ... \verb\and\ $e_{n-1} op_n e_n$, except that each expression is evaluated at most once. Note that $e_0 op_1 e_1 op_2 e_2$ does not imply any kind of comparison between $e_0$ and $e_2$, e.g. $x < y > z$ is perfectly legal. +\catcode`\_=12 The forms \verb\<>\ and \verb\!=\ are equivalent; for consistency with C, \verb\!=\ is preferred; where \verb\!=\ is mentioned below |