Mercurial > cpython-lru_cache-weakref
diff Doc/lib/liboperator.tex @ 27290:e83a42a90df1 legacy-trunk
SF patch #670423: Add missing identity tests to operator.c
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Sat, 18 Jan 2003 23:22:20 +0000 |
| parents | 201cdeb305f6 |
| children | 16b25032217f |
line wrap: on
line diff
--- a/Doc/lib/liboperator.tex Sat Jan 18 22:53:36 2003 +0000 +++ b/Doc/lib/liboperator.tex Sat Jan 18 23:22:20 2003 +0000 @@ -48,7 +48,7 @@ The logical operations are also generally applicable to all objects, -and support truth tests and Boolean operations: +and support truth tests, identity tests, and Boolean operations: \begin{funcdesc}{not_}{o} \funcline{__not__}{o} @@ -64,6 +64,14 @@ constructor. \end{funcdesc} +\begin{funcdesc}{is_}{a, b} +Return \code{\var{a} is \var{b}}. Tests object identity. +\end{funcdesc} + +\begin{funcdesc}{is_not}{a, b} +Return \code{\var{a} is not \var{b}}. Tests object identity. +\end{funcdesc} + The mathematical and bitwise operations are the most numerous:
