This repository has been archived on 2025-02-01. You can view files and clone it, but cannot push or open issues or pull requests.
PyBitmessage-2025-02-01/mockenv/lib/python3.6/site-packages/Cython/Includes/cpython/iterobject.pxd

25 lines
1.0 KiB
Cython
Raw Normal View History

2022-07-22 12:43:59 +02:00
cdef extern from "Python.h":
###########################################################################
# Iterator Objects
###########################################################################
bint PySeqIter_Check(object op)
# Return true if the type of op is PySeqIter_Type.
object PySeqIter_New(object seq)
# Return value: New reference.
# Return an iterator that works with a general sequence object, seq. The
# iteration ends when the sequence raises IndexError for the subscripting
# operation.
bint PyCallIter_Check(object op)
# Return true if the type of op is PyCallIter_Type.
object PyCallIter_New(object callable, object sentinel)
# Return value: New reference.
# Return a new iterator. The first parameter, callable, can be any Python
# callable object that can be called with no parameters; each call to it
# should return the next item in the iteration. When callable returns a
# value equal to sentinel, the iteration will be terminated.