mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
bpo-40170: Always define PyIter_Check() as a function (GH-24548)
This commit is contained in:
parent
17dbd4078b
commit
cc54001c2e
5 changed files with 11 additions and 14 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue