Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c6a3cb4

Browse files
committed
Document PySequence_Size(), and describe PySequence_Length() as simply an
alternate name for the same function.
1 parent e3850f5 commit c6a3cb4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Doc/api/api.tex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1876,13 +1876,17 @@ \section{Sequence Protocol \label{sequence}}
18761876
\code{0} otherwise. This function always succeeds.
18771877
\end{cfuncdesc}
18781878

1879-
\begin{cfuncdesc}{int}{PySequence_Length}{PyObject *o}
1879+
\begin{cfuncdesc}{int}{PySequence_Size}{PyObject *o}
18801880
Returns the number of objects in sequence \var{o} on success, and
18811881
\code{-1} on failure. For objects that do not provide sequence
18821882
protocol, this is equivalent to the Python expression
18831883
\samp{len(\var{o})}.\bifuncindex{len}
18841884
\end{cfuncdesc}
18851885

1886+
\begin{cfuncdesc}{int}{PySequence_Length}{PyObject *o}
1887+
Alternate name for \cfunction{PySequence_Size()}.
1888+
\end{cfuncdesc}
1889+
18861890
\begin{cfuncdesc}{PyObject*}{PySequence_Concat}{PyObject *o1, PyObject *o2}
18871891
Return the concatenation of \var{o1} and \var{o2} on success, and \NULL{} on
18881892
failure. This is the equivalent of the Python

0 commit comments

Comments
 (0)