From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 5 Nov 2025 22:41:16 +0000 (+0100) Subject: [3.13] gh-141004: Document `PyDict_GET_SIZE` (GH-141078) (GH-141083) X-Git-Tag: v3.13.10~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc059dbe5513adec51078c3c1271a067b8de2f47;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-141004: Document `PyDict_GET_SIZE` (GH-141078) (GH-141083) gh-141004: Document `PyDict_GET_SIZE` (GH-141078) (cherry picked from commit f0ab07f22c5fd18058a3ece7a1e745b3922af908) Co-authored-by: Peter Bierma --- diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst index 2ae70980c450..538ecc34b4d9 100644 --- a/Doc/c-api/dict.rst +++ b/Doc/c-api/dict.rst @@ -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