summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-03-14 18:17:43 (GMT)
committerGitHub <noreply@github.com>2024-03-14 18:17:43 (GMT)
commitc432df6d56f3e02530132321b47dcc7b914a3660 (patch)
tree5681440b657fcbdd83da18a7fb2e74dfef1a1656 /Doc/c-api
parent25cd8730aa39c18e767f63586dfd1da2fbb307c9 (diff)
downloadcpython-c432df6d56f3e02530132321b47dcc7b914a3660.zip
cpython-c432df6d56f3e02530132321b47dcc7b914a3660.tar.gz
cpython-c432df6d56f3e02530132321b47dcc7b914a3660.tar.bz2
gh-111696, PEP 737: Add PyType_GetModuleName() function (#116824)
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/type.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst
index c523423..0cae5c0 100644
--- a/Doc/c-api/type.rst
+++ b/Doc/c-api/type.rst
@@ -193,6 +193,13 @@ Type Objects
.. versionadded:: 3.13
+.. c:function:: PyObject* PyType_GetModuleName(PyTypeObject *type)
+
+ Return the type's module name. Equivalent to getting the ``type.__module__``
+ attribute.
+
+ .. versionadded:: 3.13
+
.. c:function:: void* PyType_GetSlot(PyTypeObject *type, int slot)
Return the function pointer stored in the given slot. If the