Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-39573: Convert Py_TYPE() to a static inline function #20290

Merged
merged 6 commits into from
May 25, 2020
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)

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.
Expand Down