diff options
author | Fred Drake <fdrake@acm.org> | 2000-06-15 20:07:25 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-06-15 20:07:25 (GMT) |
commit | e57a11441ec3e901acf7b422e8b7ff731876f0ba (patch) | |
tree | 6c297956d777829dbd860ca0772793bf339613be | |
parent | 9e759dfc31ac60ee5d0dc5ae3d548e62f7a45515 (diff) | |
download | cpython-e57a11441ec3e901acf7b422e8b7ff731876f0ba.zip cpython-e57a11441ec3e901acf7b422e8b7ff731876f0ba.tar.gz cpython-e57a11441ec3e901acf7b422e8b7ff731876f0ba.tar.bz2 |
Fix markup error that hid a tilde character; reported long ago by
Carl Feynman <carlf@abinitio.com>.
-rw-r--r-- | Doc/ref/ref3.tex | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex index f46cdc9..c51f514 100644 --- a/Doc/ref/ref3.tex +++ b/Doc/ref/ref3.tex @@ -933,6 +933,17 @@ instances are compared by object identity (``address''). \index{comparisons} \end{methoddesc} +\begin{methoddesc}[object]{__rcmp__}{self, other} +Called by all comparison operations. Should return a negative integer if +\code{self < other}, zero if \code{self == other}, a positive integer if +\code{self > other}. If no \method{__cmp__()} operation is defined, class +instances are compared by object identity (``address''). +(Note: the restriction that exceptions are not propagated by +\method{__cmp__()} has been removed in Python 1.5.) +\bifuncindex{cmp} +\index{comparisons} +\end{methoddesc} + \begin{methoddesc}[object]{__hash__}{self} Called for the key object for dictionary\obindex{dictionary} operations, and by the built-in function @@ -1201,7 +1212,7 @@ complicated). \methodline[numeric object]{__abs__}{self} \methodline[numeric object]{__invert__}{self} Called to implement the unary arithmetic operations (\code{-}, \code{+}, -\function{abs()}\bifuncindex{abs} and \code{~}). +\function{abs()}\bifuncindex{abs} and \code{\~{}}). \end{methoddesc} \begin{methoddesc}[numeric object]{__complex__}{self} |