[Python-checkins] r58115 - python/trunk/Doc/c-api/concrete.rst

georg.brandl python-checkins at python.org
Wed Sep 12 20:08:34 CEST 2007


Author: georg.brandl
Date: Wed Sep 12 20:08:33 2007
New Revision: 58115

Modified:
   python/trunk/Doc/c-api/concrete.rst
Log:
Fix #1122: wrong return type documented for various _Size() functions.


Modified: python/trunk/Doc/c-api/concrete.rst
==============================================================================
--- python/trunk/Doc/c-api/concrete.rst	(original)
+++ python/trunk/Doc/c-api/concrete.rst	Wed Sep 12 20:08:33 2007
@@ -1933,12 +1933,12 @@
    .. 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 @@
 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 @@
    :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.
 


More information about the Python-checkins mailing list