aboutsummaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-02-15 17:19:24 +0100
committerGitHub <noreply@github.com>2021-02-15 17:19:24 +0100
commit4bb2a1ebc569eee6f1b46ecef1965a26ae8cb76d (patch)
tree3d35304e122385f6f9a3e79f123a51035dfc8b77 /Doc
parentbpo-42967: only use '&' as a query string separator (#24297) (diff)
downloadcpython-4bb2a1ebc569eee6f1b46ecef1965a26ae8cb76d.tar.gz
cpython-4bb2a1ebc569eee6f1b46ecef1965a26ae8cb76d.tar.bz2
cpython-4bb2a1ebc569eee6f1b46ecef1965a26ae8cb76d.zip
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 a387b4a2df1..1100af1df29 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)