From: Jeroen Ruigrok van der Werven Date: Sat, 25 Apr 2009 14:27:00 +0000 (+0000) Subject: The type for ppos has been Py_ssize_t since 2.5, reflect this in the X-Git-Tag: v2.7a1~1407 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=325a997efbc6bf4356b94a2cf888cdbf792f44ae;p=python The type for ppos has been Py_ssize_t since 2.5, reflect this in the documentation. --- diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst index 76f64057ab..6f6705b5ff 100644 --- a/Doc/c-api/dict.rst +++ b/Doc/c-api/dict.rst @@ -146,7 +146,7 @@ Dictionary Objects .. cfunction:: int PyDict_Next(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue) - Iterate over all key-value pairs in the dictionary *p*. The :ctype:`int` + Iterate over all key-value pairs in the dictionary *p*. The :ctype:`Py_ssize_t` referred to by *ppos* must be initialized to ``0`` prior to the first call to this function to start the iteration; the function returns true for each pair in the dictionary, and false once all pairs have been reported. The