mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
The type for ppos has been Py_ssize_t since 2.5, reflect this in the
documentation.
This commit is contained in:
parent
c42c099436
commit
325a997efb
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ Dictionary Objects
|
||||||
|
|
||||||
.. cfunction:: int PyDict_Next(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue)
|
.. 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
|
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
|
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
|
pair in the dictionary, and false once all pairs have been reported. The
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue