summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRichard Hansen <rhansen@rhansen.org>2024-11-07 15:29:31 (GMT)
committerGitHub <noreply@github.com>2024-11-07 15:29:31 (GMT)
commite3510bd3dd9ea8f2a30cb1128470aee3a48d8880 (patch)
tree24bd70fdd97a5b85c91843605792c3640959e959 /Doc
parent85036c8d612007356d2118eb25b460505078b023 (diff)
downloadcpython-e3510bd3dd9ea8f2a30cb1128470aee3a48d8880.zip
cpython-e3510bd3dd9ea8f2a30cb1128470aee3a48d8880.tar.gz
cpython-e3510bd3dd9ea8f2a30cb1128470aee3a48d8880.tar.bz2
Doc: C API: Demote sections to subsections for consistency (#126535)
The entire file should be a single section; the headings below the first heading should be subsections.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/typeobj.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst
index 8a18548..ba58cc1 100644
--- a/Doc/c-api/typeobj.rst
+++ b/Doc/c-api/typeobj.rst
@@ -2230,7 +2230,7 @@ This is done by filling a :c:type:`PyType_Spec` structure and calling
.. _number-structs:
Number Object Structures
-========================
+------------------------
.. sectionauthor:: Amaury Forgeot d'Arc
@@ -2344,7 +2344,7 @@ Number Object Structures
.. _mapping-structs:
Mapping Object Structures
-=========================
+-------------------------
.. sectionauthor:: Amaury Forgeot d'Arc
@@ -2381,7 +2381,7 @@ Mapping Object Structures
.. _sequence-structs:
Sequence Object Structures
-==========================
+--------------------------
.. sectionauthor:: Amaury Forgeot d'Arc
@@ -2461,7 +2461,7 @@ Sequence Object Structures
.. _buffer-structs:
Buffer Object Structures
-========================
+------------------------
.. sectionauthor:: Greg J. Stein <greg@lyra.org>
.. sectionauthor:: Benjamin Peterson
@@ -2556,7 +2556,7 @@ Buffer Object Structures
Async Object Structures
-=======================
+-----------------------
.. sectionauthor:: Yury Selivanov <yselivanov@sprymix.com>
@@ -2624,7 +2624,7 @@ Async Object Structures
.. _slot-typedefs:
Slot Type typedefs
-==================
+------------------
.. c:type:: PyObject *(*allocfunc)(PyTypeObject *cls, Py_ssize_t nitems)
@@ -2733,7 +2733,7 @@ Slot Type typedefs
.. _typedef-examples:
Examples
-========
+--------
The following are simple examples of Python type definitions. They
include common usage you may encounter. Some demonstrate tricky corner