aboutsummaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-02-16 08:50:00 +0100
committerGitHub <noreply@github.com>2021-02-16 08:50:00 +0100
commit871eb4237b9be95263ca13ba8856e78344eb9eba (patch)
tree25e8e7ac21e5656233c0111593e0de37e304ce65 /Doc
parentbpo-43155: Add PyCMethod_New to PC/python3dll.c (GH-24500) (diff)
downloadcpython-master.tar.gz
cpython-master.tar.bz2
cpython-master.zip
bpo-40170: Convert PyDescr_IsData() to static inline function (GH-24535)HEADmaster
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/descriptor.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/descriptor.rst b/Doc/c-api/descriptor.rst
index 1005140c7ac..b32c113e5f0 100644
--- a/Doc/c-api/descriptor.rst
+++ b/Doc/c-api/descriptor.rst
@@ -32,8 +32,8 @@ found in the dictionary of type objects.
.. c:function:: int PyDescr_IsData(PyObject *descr)
- Return true if the descriptor objects *descr* describes a data attribute, or
- false if it describes a method. *descr* must be a descriptor object; there is
+ Return non-zero if the descriptor objects *descr* describes a data attribute, or
+ ``0`` if it describes a method. *descr* must be a descriptor object; there is
no error checking.