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

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

index eed47c8966c473882f268bc37fac0b958461b0ea..49ac4de6655a881e4e05be0fd76974bc6dd200c1 100644 (file)
@@ -277,6 +277,11 @@ data stored in module state.
          No longer called before the module state is allocated.
 
 
+.. c:var:: PyTypeObject PyModuleDef_Type
+
+   The type of ``PyModuleDef`` objects.
+
+
 Module slots
 ............
 
index 1351190b1f6b32b4a2e238acf391e6d713bea50f..eed3935a258c4f9546ae0d60140e78ebdd6822fd 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