From d534be53531eb4284bae88eee95c18a4e161c38f Mon Sep 17 00:00:00 2001 From: Jeroen Demeyer Date: Mon, 20 May 2019 11:59:17 +0200 Subject: [PATCH] bpo-36971: add subsections in C API "Common Object Structures" page --- Doc/c-api/structures.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Doc/c-api/structures.rst b/Doc/c-api/structures.rst index 5e0cfd0264f931..1c6e6af185f404 100644 --- a/Doc/c-api/structures.rst +++ b/Doc/c-api/structures.rst @@ -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 are used. + +Base object types and macros +---------------------------- + 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 :c:type:`PyObject` and :c:type:`PyVarObject` types, which are defined, in turn, @@ -102,6 +106,9 @@ the definition of all other Python objects. 1, type, size, +Implementing functions and methods +---------------------------------- + .. c:type:: PyCFunction Type of the functions used to implement most Python callables in C. @@ -231,6 +238,9 @@ definition with the same method name. than wrapper object calls. +Accessing attributes of extension types +--------------------------------------- + .. c:type:: PyMemberDef Structure which describes an attribute of a type which corresponds to a C