Skip to content

Commit 5ca81a4

Browse files
committed
Document range objects as well.
1 parent 37d4968 commit 5ca81a4

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

Doc/c-api/iterator.rst

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,33 @@ sentinel value is returned.
5252
*sentinel*, the iteration will be terminated.
5353
5454
55-
.. _other-builtin-types:
55+
56+
.. _range-objects:
57+
Range Objects
58+
^^^^^^^^^^^^^
59+
60+
.. c:var:: PyTypeObject PyRange_Type
61+
62+
The type object for :class:`range` objects.
63+
64+
65+
.. c:var:: PyTypeObject PyRangeIter_Type
66+
67+
The type object for iterators over :class:`range` objects.
68+
69+
70+
.. c:var:: PyTypeObject PyLongRangeIter_Type
71+
72+
The type object for iterators over :class:`range` objects with large bounds.
73+
74+
75+
.. c:function:: int PyRange_Check(PyObject *o)
76+
77+
Return true if the object *o* is an instance of a :class:`range` object.
78+
This function always succeeds.
79+
80+
81+
.. _other-builtin-iterator-types:
5682
5783
Other Builtin Iterator Types
5884
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -78,3 +104,4 @@ provide no additional functions. They are here for completeness.
78104
.. c:var:: PyTypeObject PyZip_Type
79105
80106
The type object for :class:`zip` objects.
107+

0 commit comments

Comments
 (0)