Commit 9669931e authored by Jeroen Demeyer's avatar Jeroen Demeyer Committed by Dino Viehland

bpo-36971: add subsections in C API "Common Object Structures" page (#13446)

parent f1c19031
...@@ -9,6 +9,10 @@ There are a large number of structures which are used in the definition of ...@@ -9,6 +9,10 @@ There are a large number of structures which are used in the definition of
object types for Python. This section describes these structures and how they object types for Python. This section describes these structures and how they
are used. are used.
Base object types and macros
----------------------------
All Python objects ultimately share a small number of fields at the beginning All Python objects ultimately share a small number of fields at the beginning
of the object's representation in memory. These are represented by the of the object's representation in memory. These are represented by the
:c:type:`PyObject` and :c:type:`PyVarObject` types, which are defined, in turn, :c:type:`PyObject` and :c:type:`PyVarObject` types, which are defined, in turn,
...@@ -102,6 +106,9 @@ the definition of all other Python objects. ...@@ -102,6 +106,9 @@ the definition of all other Python objects.
1, type, size, 1, type, size,
Implementing functions and methods
----------------------------------
.. c:type:: PyCFunction .. c:type:: PyCFunction
Type of the functions used to implement most Python callables in C. Type of the functions used to implement most Python callables in C.
...@@ -271,6 +278,9 @@ definition with the same method name. ...@@ -271,6 +278,9 @@ definition with the same method name.
than wrapper object calls. than wrapper object calls.
Accessing attributes of extension types
---------------------------------------
.. c:type:: PyMemberDef .. c:type:: PyMemberDef
Structure which describes an attribute of a type which corresponds to a C Structure which describes an attribute of a type which corresponds to a C
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment