Skip to content

Commit a754636

Browse files
committed
Make a table.
1 parent caa1f8f commit a754636

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

Doc/c-api/iterator.rst

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -72,24 +72,23 @@ Builtin Iterator Types
7272
These are built-in iteration types that are included in Python's C API, but
7373
provide no additional functions. They are here for completeness.
7474
75-
.. c:var:: PyTypeObject PyEnum_Type
7675
77-
The type object for :class:`enumerate` objects.
78-
79-
80-
.. c:var:: PyTypeObject PyMap_Type
81-
82-
The type object for :class:`map` objects.
83-
84-
85-
.. c:var:: PyTypeObject PyReversed_Type
86-
87-
The type object for :class:`reversed` objects.
88-
89-
90-
.. c:var:: PyTypeObject PyZip_Type
91-
92-
The type object for :class:`zip` objects.
76+
.. list-table::
77+
:widths: auto
78+
:header-rows: 1
79+
80+
* * C type
81+
* Python type
82+
* * .. c:var:: PyTypeObject PyEnum_Type
83+
* :py:class:`enumerate`
84+
* * .. c:var:: PyTypeObject PyFilter_Type
85+
* :py:class:`filter`
86+
* * .. c:var:: PyTypeObject PyMap_Type
87+
* :py:class:`map`
88+
* * .. c:var:: PyTypeObject PyReversed_Type
89+
* :py:class:`reversed`
90+
* * .. c:var:: PyTypeObject PyZip_Type
91+
* :py:class:`zip`
9392
9493
9594
Other Iterator Objects

0 commit comments

Comments
 (0)