From: Fred Drake Date: Sun, 17 Sep 2000 16:10:25 +0000 (+0000) Subject: Added documentation for new functions. X-Git-Tag: v2.0b2~230 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5316ef4bbb5c214fdccb83c93dcafb8bbf4d754f;p=thirdparty%2FPython%2Fcpython.git Added documentation for new functions. Deprecated sequenceIncludes(). Based on patch by Denis S. Otkidach , this closes SourceForge patch #101390. --- diff --git a/Doc/lib/liboperator.tex b/Doc/lib/liboperator.tex index 608f1015dffa..9cf25a07ab8e 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}