summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-05-22 18:48:37 (GMT)
committerGuido van Rossum <guido@python.org>1998-05-22 18:48:37 (GMT)
commita58e9edbef1ee29c646f96dcf1706325b7e091f1 (patch)
tree2ec387b2b7324d4001820f4fabfcbb4d773a9801 /Doc/lib
parent7bf15648a4348959832f7ad8da019b4a5892f890 (diff)
downloadcpython-a58e9edbef1ee29c646f96dcf1706325b7e091f1.zip
cpython-a58e9edbef1ee29c646f96dcf1706325b7e091f1.tar.gz
cpython-a58e9edbef1ee29c646f96dcf1706325b7e091f1.tar.bz2
Document missing functions: xor, not, truth, countOf, indexOf, and
(new!) contains.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/liboperator.tex28
1 files changed, 28 insertions, 0 deletions
diff --git a/Doc/lib/liboperator.tex b/Doc/lib/liboperator.tex
index 2169ea8..1805770 100644
--- a/Doc/lib/liboperator.tex
+++ b/Doc/lib/liboperator.tex
@@ -77,6 +77,20 @@ Return the bitwise and of \var{a} and \var{b}.
Return the bitwise or of \var{a} and \var{b}.
\end{funcdesc}
+\begin{funcdesc}{xor}{a, b}
+\funcline{__xor__}{a, b}
+Return the bitwise exclusive or of \var{a} and \var{b}.
+\end{funcdesc}
+
+\begin{funcdesc}{not_}{o}
+\funcline{__not__}{o}
+Return the outcome of \keyword{not} \var{o}.
+\end{funcdesc}
+
+\begin{funcdesc}{truth}{o}
+Return 1 if \var{o} is true, and 0 otherwise.
+\end{funcdesc}
+
\begin{funcdesc}{concat}{a, b}
\funcline{__concat__}{a, b}
Return \var{a} \code{+} \var{b} for \var{a} and \var{b} sequences.
@@ -88,6 +102,20 @@ Return \var{a} \code{*} \var{b} where \var{a} is a sequence and
\var{b} is an integer.
\end{funcdesc}
+\begin{funcdesc}{contains}{a, b}
+\funcline{sequenceIncludes}{a, b}
+Return the outcome of the test \var{b} \code{in} \var{a}.
+Note the reversed operands.
+\end{funcdesc}
+
+\begin{funcdesc}{countOf}{a, b}
+Return the number of occurrences of \var{b} in \var{a}.
+\end{funcdesc}
+
+\begin{funcdesc}{indexOf}{a, b}
+Return the index of the first of occurrence of \var{b} in \var{a}.
+\end{funcdesc}
+
\begin{funcdesc}{getitem}{a, b}
\funcline{__getitem__}{a, b}
Return the value of \var{a} at index \var{b}.