summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-04-04 01:25:17 (GMT)
committerFred Drake <fdrake@acm.org>2001-04-04 01:25:17 (GMT)
commitc6a3cb4baf70e6a36dba99c11c1084fd95d72779 (patch)
tree62b69135d9222cbab2b5c5c47b52f002b55175e9 /Doc
parente3850f5b6ccf01f236b9cedbf55f1853bddbc1a6 (diff)
downloadcpython-c6a3cb4baf70e6a36dba99c11c1084fd95d72779.zip
cpython-c6a3cb4baf70e6a36dba99c11c1084fd95d72779.tar.gz
cpython-c6a3cb4baf70e6a36dba99c11c1084fd95d72779.tar.bz2
Document PySequence_Size(), and describe PySequence_Length() as simply an
alternate name for the same function.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/api/api.tex6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/api/api.tex b/Doc/api/api.tex
index dfeb060..22d0d4b 100644
--- a/Doc/api/api.tex
+++ b/Doc/api/api.tex
@@ -1876,13 +1876,17 @@ Return \code{1} if the object provides sequence protocol, and
\code{0} otherwise. This function always succeeds.
\end{cfuncdesc}
-\begin{cfuncdesc}{int}{PySequence_Length}{PyObject *o}
+\begin{cfuncdesc}{int}{PySequence_Size}{PyObject *o}
Returns the number of objects in sequence \var{o} on success, and
\code{-1} on failure. For objects that do not provide sequence
protocol, this is equivalent to the Python expression
\samp{len(\var{o})}.\bifuncindex{len}
\end{cfuncdesc}
+\begin{cfuncdesc}{int}{PySequence_Length}{PyObject *o}
+Alternate name for \cfunction{PySequence_Size()}.
+\end{cfuncdesc}
+
\begin{cfuncdesc}{PyObject*}{PySequence_Concat}{PyObject *o1, PyObject *o2}
Return the concatenation of \var{o1} and \var{o2} on success, and \NULL{} on
failure. This is the equivalent of the Python