Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Merge branch 'main' of https://github.com/python/cpython into documen…
…t-pyodict
  • Loading branch information
ZeroIntensity committed Nov 13, 2025
commit 3a9351f87e6d53dfa74833322b7cb9438fcac21c
46 changes: 46 additions & 0 deletions Doc/c-api/dict.rst
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,52 @@ Dictionary Objects
.. versionadded:: 3.12


Dictionary View Objects
^^^^^^^^^^^^^^^^^^^^^^^

.. c:function:: int PyDictViewSet_Check(PyObject *op)

Return true if *op* is a view of a set inside a dictionary. This is currently
equivalent to :c:expr:`PyDictKeys_Check(op) || PyDictItems_Check(op)`. This
function always succeeds.


.. c:var:: PyTypeObject PyDictKeys_Type

Type object for a view of dictionary keys. In Python, this is the type of
the object returned by :meth:`dict.keys`.


.. c:function:: int PyDictKeys_Check(PyObject *op)

Return true if *op* is an instance of a dictionary keys view. This function
always succeeds.


.. c:var:: PyTypeObject PyDictValues_Type

Type object for a view of dictionary values. In Python, this is the type of
the object returned by :meth:`dict.values`.


.. c:function:: int PyDictValues_Check(PyObject *op)

Return true if *op* is an instance of a dictionary values view. This function
always succeeds.


.. c:var:: PyTypeObject PyDictItems_Type

Type object for a view of dictionary items. In Python, this is the type of
the object returned by :meth:`dict.items`.


.. c:function:: int PyDictItems_Check(PyObject *op)

Return true if *op* is an instance of a dictionary items view. This function
always succeeds.


Ordered Dictionaries
^^^^^^^^^^^^^^^^^^^^

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.