mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
SF patch #670423: Add missing identity tests to operator.c
This commit is contained in:
parent
18acea7c8e
commit
9543b34006
4 changed files with 49 additions and 3 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue