https://github.com/python/cpython/commit/24cc998c164f137603f1c6d95b929d640211d237
commit: 24cc998c164f137603f1c6d95b929d640211d237
branch: main
author: Peter Bierma <[email protected]>
committer: encukou <[email protected]>
date: 2026-02-23T15:18:45+01:00
summary:
gh-141004: Document `PyModuleDef_Type` (GH-145043)
files:
M Doc/c-api/module.rst
M Tools/check-c-api-docs/ignored_c_api.txt
diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst
index aa2145b5fe5d09..39293b0fa228df 100644
--- a/Doc/c-api/module.rst
+++ b/Doc/c-api/module.rst
@@ -755,6 +755,11 @@ remove it.
functions are no longer called before the module state is allocated.
+.. c:var:: PyTypeObject PyModuleDef_Type
+
+ The type of ``PyModuleDef`` objects.
+
+
.. _moduledef-dynamic:
The following API can be used to create modules from a :c:type:`!PyModuleDef`
diff --git a/Tools/check-c-api-docs/ignored_c_api.txt
b/Tools/check-c-api-docs/ignored_c_api.txt
index e628bdfebcbded..7bf79872bd4630 100644
--- a/Tools/check-c-api-docs/ignored_c_api.txt
+++ b/Tools/check-c-api-docs/ignored_c_api.txt
@@ -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
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]