diff options
author | Georg Brandl <georg@python.org> | 2007-09-12 18:08:54 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-12 18:08:54 +0000 |
commit | 5d30e752db73e183af8f0caac252878bc545273b (patch) | |
tree | e64b38dbf6c28c36d94b42389db21fb770f6452d | |
parent | 13bfa3a97b77d722af38e70289e989c764c69765 (diff) | |
download | cpython-git-5d30e752db73e183af8f0caac252878bc545273b.tar.gz |
Fix #1122: wrong return type documented for various _Size() functions.
(backport from rev. 58115).
-rw-r--r-- | Doc/api/concrete.tex | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/api/concrete.tex b/Doc/api/concrete.tex index ec3d84a156..3ffcf5a8b9 100644 --- a/Doc/api/concrete.tex +++ b/Doc/api/concrete.tex @@ -1753,12 +1753,12 @@ format. \versionadded{2.4} \end{cfuncdesc} -\begin{cfuncdesc}{int}{PyTuple_Size}{PyObject *p} +\begin{cfuncdesc}{Py_ssize_t}{PyTuple_Size}{PyObject *p} Take a pointer to a tuple object, and return the size of that tuple. \end{cfuncdesc} -\begin{cfuncdesc}{int}{PyTuple_GET_SIZE}{PyObject *p} +\begin{cfuncdesc}{Py_ssize_t}{PyTuple_GET_SIZE}{PyObject *p} Return the size of the tuple \var{p}, which must be non-\NULL{} and point to a tuple; no error checking is performed. \end{cfuncdesc} @@ -3148,7 +3148,7 @@ Likewise, the constructor functions work with any iterable Python object. The following functions and macros are available for instances of \class{set} or \class{frozenset} or instances of their subtypes. -\begin{cfuncdesc}{int}{PySet_Size}{PyObject *anyset} +\begin{cfuncdesc}{Py_ssize_t}{PySet_Size}{PyObject *anyset} Return the length of a \class{set} or \class{frozenset} object. Equivalent to \samp{len(\var{anyset})}. Raises a \exception{PyExc_SystemError} if \var{anyset} is not a \class{set}, @@ -3156,7 +3156,7 @@ The following functions and macros are available for instances of \bifuncindex{len} \end{cfuncdesc} -\begin{cfuncdesc}{int}{PySet_GET_SIZE}{PyObject *anyset} +\begin{cfuncdesc}{Py_ssize_t}{PySet_GET_SIZE}{PyObject *anyset} Macro form of \cfunction{PySet_Size()} without error checking. \end{cfuncdesc} |