Skip to content
Merged
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions Doc/c-api/iterator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,46 @@ sentinel value is returned.
*sentinel*, the iteration will be terminated.


Range Objects
^^^^^^^^^^^^^

.. c:var:: PyTypeObject PyRange_Type

The type object for :class:`range` objects.


.. c:function:: int PyRange_Check(PyObject *o)

Return true if the object *o* is an instance of a :class:`range` object.
This function always succeeds.


Builtin Iterator Types
^^^^^^^^^^^^^^^^^^^^^^

These are built-in iteration types that are included in Python's C API, but
provide no additional functions. They are here for completeness.

.. c:var:: PyTypeObject PyEnum_Type

The type object for :class:`enumerate` objects.


.. c:var:: PyTypeObject PyMap_Type

The type object for :class:`map` objects.


.. c:var:: PyTypeObject PyReversed_Type

The type object for :class:`reversed` objects.


.. c:var:: PyTypeObject PyZip_Type

The type object for :class:`zip` objects.


Other Iterator Objects
^^^^^^^^^^^^^^^^^^^^^^

Expand Down
Loading