Skip to content

Commit 8d63104

Browse files
committed
Document PyListIter_Type, PyListRevIter_Type
1 parent 2902970 commit 8d63104

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Doc/c-api/list.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,18 @@ List Objects
181181
182182
Return a new tuple object containing the contents of *list*; equivalent to
183183
``tuple(list)``.
184+
185+
List Iterators
186+
^^^^^^^^^^^^^^
187+
188+
189+
.. c:var:: PyTypeObject PyListIter_Type
190+
191+
Type object for an iterator over a :class:`list` object. Instances
192+
of this object are returned by :meth:`!bytes.__iter__`.
193+
194+
195+
.. c:var:: PyTypeObject PyListRevIter_Type
196+
197+
Type object for a reversed iterator over a :class:`list` object.
198+
Instances of this object are returned by :meth:`!bytes.__reversed__`.

0 commit comments

Comments
 (0)