]> granicus.if.org Git - python/commitdiff
Document PySequence_Size(), and describe PySequence_Length() as simply an
authorFred Drake <fdrake@acm.org>
Wed, 4 Apr 2001 01:25:17 +0000 (01:25 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 4 Apr 2001 01:25:17 +0000 (01:25 +0000)
alternate name for the same function.

Doc/api/api.tex

index dfeb0608a2c9d1ac649c8c32860dc4763d5266af..22d0d4b471ec8256e99076fdac6da9a3d4d650f0 100644 (file)
@@ -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