summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-02-15 16:19:24 (GMT)
committerGitHub <noreply@github.com>2021-02-15 16:19:24 (GMT)
commit4bb2a1ebc569eee6f1b46ecef1965a26ae8cb76d (patch)
tree3d35304e122385f6f9a3e79f123a51035dfc8b77 /Doc
parentfcbe0cb04d35189401c0c880ebfb4311e952d776 (diff)
downloadcpython-4bb2a1ebc569eee6f1b46ecef1965a26ae8cb76d.zip
cpython-4bb2a1ebc569eee6f1b46ecef1965a26ae8cb76d.tar.gz
cpython-4bb2a1ebc569eee6f1b46ecef1965a26ae8cb76d.tar.bz2
bpo-43181: Convert PyObject_TypeCheck to static inline function (GH-24533)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/object.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/object.rst b/Doc/c-api/object.rst
index a387b4a..1100af1 100644
--- a/Doc/c-api/object.rst
+++ b/Doc/c-api/object.rst
@@ -297,8 +297,8 @@ Object Protocol
.. c:function:: int PyObject_TypeCheck(PyObject *o, PyTypeObject *type)
- Return true if the object *o* is of type *type* or a subtype of *type*. Both
- parameters must be non-``NULL``.
+ Return non-zero if the object *o* is of type *type* or a subtype of *type*, and
+ ``0`` otherwise. Both parameters must be non-``NULL``.
.. c:function:: Py_ssize_t PyObject_Size(PyObject *o)