https://github.com/python/cpython/commit/fc059dbe5513adec51078c3c1271a067b8de2f47
commit: fc059dbe5513adec51078c3c1271a067b8de2f47
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: ZeroIntensity <[email protected]>
date: 2025-11-05T22:41:16Z
summary:

[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 <[email protected]>

files:
M Doc/c-api/dict.rst

diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst
index 2ae70980c450aa..538ecc34b4d969 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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to