diff options
author | Georg Brandl <georg@python.org> | 2007-09-12 18:08:33 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-12 18:08:33 (GMT) |
commit | 9c478bd8507c164bf2132083d18a319f4898db94 (patch) | |
tree | 3ba0b650886ee80649b0ef5595a140da2c619d24 /Doc/c-api | |
parent | bb07a7df9157a317f2edabe53767cff06ac2d528 (diff) | |
download | cpython-9c478bd8507c164bf2132083d18a319f4898db94.zip cpython-9c478bd8507c164bf2132083d18a319f4898db94.tar.gz cpython-9c478bd8507c164bf2132083d18a319f4898db94.tar.bz2 |
Fix #1122: wrong return type documented for various _Size() functions.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/concrete.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/c-api/concrete.rst b/Doc/c-api/concrete.rst index 2707d81..a0fd692 100644 --- a/Doc/c-api/concrete.rst +++ b/Doc/c-api/concrete.rst @@ -1933,12 +1933,12 @@ Tuple Objects .. versionadded:: 2.4 -.. cfunction:: int PyTuple_Size(PyObject *p) +.. cfunction:: Py_ssize_t PyTuple_Size(PyObject *p) Take a pointer to a tuple object, and return the size of that tuple. -.. cfunction:: int PyTuple_GET_SIZE(PyObject *p) +.. cfunction:: Py_ssize_t PyTuple_GET_SIZE(PyObject *p) Return the size of the tuple *p*, which must be non-*NULL* and point to a tuple; no error checking is performed. @@ -3565,7 +3565,7 @@ The following functions and macros are available for instances of :class:`set` or :class:`frozenset` or instances of their subtypes. -.. cfunction:: int PySet_Size(PyObject *anyset) +.. cfunction:: Py_ssize_t PySet_Size(PyObject *anyset) .. index:: builtin: len @@ -3574,7 +3574,7 @@ or :class:`frozenset` or instances of their subtypes. :class:`set`, :class:`frozenset`, or an instance of a subtype. -.. cfunction:: int PySet_GET_SIZE(PyObject *anyset) +.. cfunction:: Py_ssize_t PySet_GET_SIZE(PyObject *anyset) Macro form of :cfunc:`PySet_Size` without error checking. |