diff options
author | Victor Stinner <vstinner@python.org> | 2020-02-05 14:24:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-05 14:24:17 +0100 |
commit | 509dd90f4684e40af3105dd3e754fa4b9c1530c1 (patch) | |
tree | a16ee3a67c7473f334efc184c7cf81fbe028e02e /Doc | |
parent | f58bd7c1693fe041f7296a5778d0a11287895648 (diff) | |
download | cpython-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.rst | 12 |
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) |