Skip to content

Commit 6008716

Browse files
committed
bpo-39573: Apply code review
1 parent b31905e commit 6008716

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

Doc/c-api/structures.rst

+3-6
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,10 @@ the definition of all other Python objects.
7070
(((PyObject*)(o))->ob_type)
7171

7272

73-
.. c:macro:: Py_IS_TYPE(o, type)
74-
75-
This macro is used to check whether the type of object *o* is the *type*.
76-
It expands to::
77-
78-
(Py_TYPE(o) == type)
73+
.. c:function:: int Py_IS_TYPE(PyObject *o, PyTypeObject *type)
7974
75+
Return true if the type of object *o* is the *type*.
76+
Equivalent to: Py_TYPE(o) == type.
8077
8178
.. versionadded:: 3.9
8279
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Add :c:macro:`Py_IS_TYPE` macro to check whether the type of object *o* is
2-
the *type*.
1+
Add :c:func:`Py_IS_TYPE` static inline function to check whether
2+
the type of object *o* is the *type*.

0 commit comments

Comments
 (0)