bpo-40170: Always define PyIter_Check() as a function (GH-24548)

This commit is contained in:
Erlend Egeberg Aasland 2021-02-16 16:05:58 +01:00 committed by GitHub
parent 17dbd4078b
commit cc54001c2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 14 deletions

View file

@ -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)