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
Update Doc/c-api/structures.rst
Co-authored-by: Victor Stinner <vstinner@python.org>
  • Loading branch information
corona10 and vstinner authored May 25, 2020
commit cd3c677c3cbc8c9aaaa38b6f8eb2b104db1ae774
4 changes: 3 additions & 1 deletion Doc/c-api/structures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ the definition of all other Python objects.

.. c:function:: PyTypeObject* Py_TYPE(PyObject *o)
Comment thread
corona10 marked this conversation as resolved.
Outdated

This function is used to access the :attr:`ob_type` member of a Python object.
Get the type of the Python object *o*.

Return a borrowed reference.

.. versionchanged:: 3.10
:c:func:`Py_TYPE()` is changed to the inline static function.
Comment thread
corona10 marked this conversation as resolved.
Expand Down