summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-02-05 14:24:17 +0100
committerGitHub <noreply@github.com>2020-02-05 14:24:17 +0100
commit509dd90f4684e40af3105dd3e754fa4b9c1530c1 (patch)
treea16ee3a67c7473f334efc184c7cf81fbe028e02e /Doc
parentf58bd7c1693fe041f7296a5778d0a11287895648 (diff)
downloadcpython-git-509dd90f4684e40af3105dd3e754fa4b9c1530c1.tar.gz
bpo-39542: Convert PyType_Check() to static inline function (GH-18364)
Convert PyType_HasFeature(), PyType_Check() and PyType_CheckExact() macros to static inline functions.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/type.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst
index 41956b7dca..f774ca35ed 100644
--- a/Doc/c-api/type.rst
+++ b/Doc/c-api/type.rst
@@ -21,14 +21,14 @@ Type Objects
.. c:function:: int PyType_Check(PyObject *o)
- Return true if the object *o* is a type object, including instances of types
- derived from the standard type object. Return false in all other cases.
+ Return non-zero if the object *o* is a type object, including instances of
+ types derived from the standard type object. Return 0 in all other cases.
.. c:function:: int PyType_CheckExact(PyObject *o)
- Return true if the object *o* is a type object, but not a subtype of the
- standard type object. Return false in all other cases.
+ Return non-zero if the object *o* is a type object, but not a subtype of the
+ standard type object. Return 0 in all other cases.
.. c:function:: unsigned int PyType_ClearCache()
@@ -57,8 +57,8 @@ Type Objects
.. c:function:: int PyType_HasFeature(PyTypeObject *o, int feature)
- Return true if the type object *o* sets the feature *feature*. Type features
- are denoted by single bit flags.
+ Return non-zero if the type object *o* sets the feature *feature*.
+ Type features are denoted by single bit flags.
.. c:function:: int PyType_IS_GC(PyTypeObject *o)