diff options
author | Raymond Hettinger <python@rcn.com> | 2003-01-18 23:22:20 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-01-18 23:22:20 (GMT) |
commit | 9543b340066e85bb920a0655edf33e11050d7b08 (patch) | |
tree | d111331abed4d1df42473b5a0bdf3890b7574e7d /Doc | |
parent | 18acea7c8ea44fe1e655d64fe4f04fc9710f9ea7 (diff) | |
download | cpython-9543b340066e85bb920a0655edf33e11050d7b08.zip cpython-9543b340066e85bb920a0655edf33e11050d7b08.tar.gz cpython-9543b340066e85bb920a0655edf33e11050d7b08.tar.bz2 |
SF patch #670423: Add missing identity tests to operator.c
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/liboperator.tex | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Doc/lib/liboperator.tex b/Doc/lib/liboperator.tex index f3f0980..7bd66ea 100644 --- a/Doc/lib/liboperator.tex +++ b/Doc/lib/liboperator.tex @@ -48,7 +48,7 @@ for more informations about rich comparisons. 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 @@ otherwise. This is equivalent to using the \class{bool} 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: |