From: Peter Bierma Date: Mon, 23 Feb 2026 15:11:21 +0000 (-0500) Subject: [3.13] gh-141004: Document `PyModuleDef_Type` (GH-145043) (GH-145147) X-Git-Tag: v3.13.13~167 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56cc9ba645978492b5da135b9791ff3118a65c88;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-141004: Document `PyModuleDef_Type` (GH-145043) (GH-145147) (cherry picked from commit 24cc998c164f137603f1c6d95b929d640211d237) --- diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst index 4f9f4ac6f41b..7601f5ee9f52 100644 --- a/Doc/c-api/module.rst +++ b/Doc/c-api/module.rst @@ -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 ........................... diff --git a/Tools/check-c-api-docs/ignored_c_api.txt b/Tools/check-c-api-docs/ignored_c_api.txt index 7aefd6557eff..00dfbb964bb9 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