summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-09-17 16:10:25 (GMT)
committerFred Drake <fdrake@acm.org>2000-09-17 16:10:25 (GMT)
commit5316ef4bbb5c214fdccb83c93dcafb8bbf4d754f (patch)
treeeef0bbdfa062766e30e9785013cd12e159426e15 /Doc/lib
parentea4d3f0804a3aad5afaa66a91012325e2067a0af (diff)
downloadcpython-5316ef4bbb5c214fdccb83c93dcafb8bbf4d754f.zip
cpython-5316ef4bbb5c214fdccb83c93dcafb8bbf4d754f.tar.gz
cpython-5316ef4bbb5c214fdccb83c93dcafb8bbf4d754f.tar.bz2
Added documentation for new functions.
Deprecated sequenceIncludes(). Based on patch by Denis S. Otkidach <ods@users.sourceforge.net>, this closes SourceForge patch #101390.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/liboperator.tex14
1 files changed, 11 insertions, 3 deletions
diff --git a/Doc/lib/liboperator.tex b/Doc/lib/liboperator.tex
index 608f101..9cf25a0 100644
--- a/Doc/lib/liboperator.tex
+++ b/Doc/lib/liboperator.tex
@@ -56,7 +56,9 @@ Return the absolute value of \var{o}.
\begin{funcdesc}{inv}{o}
\funcline{__inv__}{o}
-Return the inverse of \var{o}.
+\funcline{__invert__}{o}
+Return the inverse of \var{o}. The names \function{invert()} and
+\function{__invert__()} were added in Python 2.0.
\end{funcdesc}
\begin{funcdesc}{lshift}{a, b}
@@ -107,9 +109,15 @@ Return \var{a} \code{*} \var{b} where \var{a} is a sequence and
\end{funcdesc}
\begin{funcdesc}{contains}{a, b}
-\funcline{sequenceIncludes}{a, b}
+\funcline{__contains__}{a, b}
Return the outcome of the test \var{b} \code{in} \var{a}.
-Note the reversed operands.
+Note the reversed operands. The name \function{__contains__()} was
+added in Python 2.0.
+\end{funcdesc}
+
+\begin{funcdesc}{sequenceIncludes}{\unspecified}
+\deprecated{2.0}{Use \function{contains()} instead.}
+Alias for \function{contains()}.
\end{funcdesc}
\begin{funcdesc}{countOf}{a, b}