]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-141004: Document `PyModuleDef_Type` (GH-145043) (GH-145147)
authorPeter Bierma <zintensitydev@gmail.com>
Mon, 23 Feb 2026 15:11:21 +0000 (10:11 -0500)
committerGitHub <noreply@github.com>
Mon, 23 Feb 2026 15:11:21 +0000 (15:11 +0000)
(cherry picked from commit 24cc998c164f137603f1c6d95b929d640211d237)

Doc/c-api/module.rst
Tools/check-c-api-docs/ignored_c_api.txt

index 4f9f4ac6f41bfebac90a67fb624bc19376f295ed..7601f5ee9f5228843c899e484f0df410042e8eba 100644 (file)
@@ -263,6 +263,12 @@ or request "multi-phase initialization" by returning the definition struct itsel
       .. versionchanged:: 3.9
          No longer called before the module state is allocated.
 
+
+.. c:var:: PyTypeObject PyModuleDef_Type
+
+   The type of ``PyModuleDef`` objects.
+
+
 Single-phase initialization
 ...........................
 
index 7aefd6557eff7b7ca1fb0db6c5e182aa5d289c59..00dfbb964bb9c0fce2791f752be137c162b5a7e6 100644 (file)
@@ -20,8 +20,6 @@ Py_UTF8Mode
 Py_HASH_EXTERNAL
 # modsupport.h
 PyABIInfo_FREETHREADING_AGNOSTIC
-# moduleobject.h
-PyModuleDef_Type
 # object.h
 Py_INVALID_SIZE
 Py_TPFLAGS_HAVE_VERSION_TAG