New submission from 
                                        Andrew Gaul
                                :

Documentation claims int, API uses Py_ssize_t.

----------
components: Documentation
files: pytuple_size.patch
messages: 55718
nosy: gaul
severity: minor
status: open
title: PyTuple_Size and PyTuple_GET_SIZE return type documentation incorrect
versions: Python 2.5

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1122>
__________________________________
Index: Doc/c-api/concrete.rst
===================================================================
--- Doc/c-api/concrete.rst	(revision 58025)
+++ Doc/c-api/concrete.rst	(working copy)
@@ -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.
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to