Skip to content

Commit ac588e5

Browse files
committed
Document missing built-in types in the C API.
1 parent fa9c3ee commit ac588e5

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

Doc/c-api/builtin.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.. highlight:: c
2+
3+
.. _other-builtin-types:
4+
5+
Other Builtin Types
6+
-------------------
7+
8+
These are built-in types that are included in Python's C API, but provide no
9+
additional functions. They are here for completeness.
10+
11+
.. c:var:: PyTypeObject PyEnum_Type
12+
13+
The type object for :class:`enumerate` objects.
14+
15+
16+
.. c:var:: PyTypeObject PyMap_Type
17+
18+
The type object for :class:`map` objects.
19+
20+
21+
.. c:var:: PyTypeObject PyReversed_Type
22+
23+
The type object for :class:`reversed` objects.
24+
25+
26+
.. c:var:: PyTypeObject PyZip_Type
27+
28+
The type object for :class:`zip` objects.

Doc/c-api/concrete.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,4 @@ Other Objects
117117
contextvars.rst
118118
datetime.rst
119119
typehints.rst
120+
builtin.rst

0 commit comments

Comments
 (0)