summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen Ruigrok van der Werven <asmodai@in-nomine.org>2009-04-25 14:27:00 (GMT)
committerJeroen Ruigrok van der Werven <asmodai@in-nomine.org>2009-04-25 14:27:00 (GMT)
commit325a997efbc6bf4356b94a2cf888cdbf792f44ae (patch)
tree4466488b3f6cce1ea2d76be775260cb01f0a4349
parentc42c09943682aeb3c82246e8f3536db419c087a3 (diff)
downloadcpython-325a997efbc6bf4356b94a2cf888cdbf792f44ae.zip
cpython-325a997efbc6bf4356b94a2cf888cdbf792f44ae.tar.gz
cpython-325a997efbc6bf4356b94a2cf888cdbf792f44ae.tar.bz2
The type for ppos has been Py_ssize_t since 2.5, reflect this in the
documentation.
-rw-r--r--Doc/c-api/dict.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst
index 76f6405..6f6705b 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