Skip to content

Commit fc059db

Browse files
[3.13] pythongh-141004: Document PyDict_GET_SIZE (pythonGH-141078) (pythonGH-141083)
pythongh-141004: Document `PyDict_GET_SIZE` (pythonGH-141078) (cherry picked from commit f0ab07f) Co-authored-by: Peter Bierma <[email protected]>
1 parent d29fe3f commit fc059db

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)