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

Dino Viehland webhook-mailer at python.org
Tue Sep 10 06:42:03 EDT 2019


https://github.com/python/cpython/commit/9669931e5e76cf4b6ae6d3d66e699b5fd6ffe931
commit: 9669931e5e76cf4b6ae6d3d66e699b5fd6ffe931
branch: master
author: Jeroen Demeyer <J.Demeyer at UGent.be>
committer: Dino Viehland <dinoviehland at gmail.com>
date: 2019-09-10T11:41:59+01:00
summary:

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

files:
M Doc/c-api/structures.rst

diff --git a/Doc/c-api/structures.rst b/Doc/c-api/structures.rst
index d4e65afef14d..af797778ce63 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.
@@ -271,6 +278,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



More information about the Python-checkins mailing list