summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/iter.rst
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-02-16 15:05:58 (GMT)
committerGitHub <noreply@github.com>2021-02-16 15:05:58 (GMT)
commitcc54001c2eb3b14320c1667b22602d69c90d5865 (patch)
tree1c4b39bfc9027e42b3f18c0cae147a8d0f7115e4 /Doc/c-api/iter.rst
parent17dbd4078b68db8954df6b5cdc40b786bc4ad7af (diff)
downloadcpython-cc54001c2eb3b14320c1667b22602d69c90d5865.zip
cpython-cc54001c2eb3b14320c1667b22602d69c90d5865.tar.gz
cpython-cc54001c2eb3b14320c1667b22602d69c90d5865.tar.bz2
bpo-40170: Always define PyIter_Check() as a function (GH-24548)
Diffstat (limited to 'Doc/c-api/iter.rst')
-rw-r--r--Doc/c-api/iter.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/c-api/iter.rst b/Doc/c-api/iter.rst
index 74fb557..5706777 100644
--- a/Doc/c-api/iter.rst
+++ b/Doc/c-api/iter.rst
@@ -9,8 +9,8 @@ There are two functions specifically for working with iterators.
.. c:function:: int PyIter_Check(PyObject *o)
- Return true if the object *o* supports the iterator protocol. This
- function always succeeds.
+ Return non-zero if the object *o* supports the iterator protocol, and ``0``
+ otherwise. This function always succeeds.
.. c:function:: PyObject* PyIter_Next(PyObject *o)