[3.13] gh-141004: Document PyDict_GET_SIZE (GH-141078) (GH-141083)

gh-141004: Document `PyDict_GET_SIZE` (GH-141078)
(cherry picked from commit f0ab07f22c)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
This commit is contained in:
Miss Islington (bot) 2025-11-05 23:41:16 +01:00 committed by GitHub
parent d29fe3f32c
commit fc059dbe55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -245,6 +245,11 @@ Dictionary Objects
``len(p)`` on a dictionary.
.. c:function:: Py_ssize_t PyDict_GET_SIZE(PyObject *p)
Similar to :c:func:`PyDict_Size`, but without error checking.
.. c:function:: int PyDict_Next(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue)
Iterate over all key-value pairs in the dictionary *p*. The