Skip to content

Commit f0ab07f

Browse files
gh-141004: Document PyDict_GET_SIZE (GH-141078)
1 parent 227f4ab commit f0ab07f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/c-api/dict.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,11 @@ Dictionary Objects
245245
``len(p)`` on a dictionary.
246246
247247
248+
.. c:function:: Py_ssize_t PyDict_GET_SIZE(PyObject *p)
249+
250+
Similar to :c:func:`PyDict_Size`, but without error checking.
251+
252+
248253
.. c:function:: int PyDict_Next(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue)
249254
250255
Iterate over all key-value pairs in the dictionary *p*. The

0 commit comments

Comments
 (0)