]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-141004: Document `PyDict_GET_SIZE` (GH-141078)
authorPeter Bierma <zintensitydev@gmail.com>
Wed, 5 Nov 2025 22:32:12 +0000 (17:32 -0500)
committerGitHub <noreply@github.com>
Wed, 5 Nov 2025 22:32:12 +0000 (17:32 -0500)
Doc/c-api/dict.rst

index 0abbd662dad394fbc6aa1b75828e082c201258a3..246ce5391e142c234fe6c97aa767810e0b215236 100644 (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