Skip to content

Commit 9669931

Browse files
jdemeyerDinoV
authored andcommitted
bpo-36971: add subsections in C API "Common Object Structures" page (#13446)
1 parent f1c1903 commit 9669931

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Doc/c-api/structures.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ There are a large number of structures which are used in the definition of
99
object types for Python. This section describes these structures and how they
1010
are used.
1111

12+
13+
Base object types and macros
14+
----------------------------
15+
1216
All Python objects ultimately share a small number of fields at the beginning
1317
of the object's representation in memory. These are represented by the
1418
:c:type:`PyObject` and :c:type:`PyVarObject` types, which are defined, in turn,
@@ -102,6 +106,9 @@ the definition of all other Python objects.
102106
1, type, size,
103107

104108

109+
Implementing functions and methods
110+
----------------------------------
111+
105112
.. c:type:: PyCFunction
106113
107114
Type of the functions used to implement most Python callables in C.
@@ -271,6 +278,9 @@ definition with the same method name.
271278
than wrapper object calls.
272279

273280

281+
Accessing attributes of extension types
282+
---------------------------------------
283+
274284
.. c:type:: PyMemberDef
275285
276286
Structure which describes an attribute of a type which corresponds to a C

0 commit comments

Comments
 (0)