SF patch #670423: Add missing identity tests to operator.c

This commit is contained in:
Raymond Hettinger 2003-01-18 23:22:20 +00:00
parent 18acea7c8e
commit 9543b34006
4 changed files with 49 additions and 3 deletions

View file

@ -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: