Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-141004: Document PyDict_GET_SIZE (GH-141078)
(cherry picked from commit f0ab07f)

Co-authored-by: Peter Bierma <[email protected]>
  • Loading branch information
ZeroIntensity authored and miss-islington committed Nov 5, 2025
commit cd508d4acc0852d4a246de9df8f090dee0262a79
5 changes: 5 additions & 0 deletions Doc/c-api/dict.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading