gh-111696, PEP 737: Add PyType_GetModuleName() function (#116824)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
This commit is contained in:
Victor Stinner 2024-03-14 19:17:43 +01:00 committed by GitHub
parent 25cd8730aa
commit c432df6d56
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 48 additions and 27 deletions

View file

@ -7,7 +7,6 @@
#include "pycore_initconfig.h" // _PyStatus_OK()
#include "pycore_namespace.h" //_PyNamespace_New()
#include "pycore_pyerrors.h" // _PyErr_Clear()
#include "pycore_typeobject.h" // _PyType_GetModuleName()
#include "pycore_weakref.h" // _PyWeakref_GET_REF()
@ -510,7 +509,7 @@ _excinfo_init_type(struct _excinfo_type *info, PyObject *exc)
}
// __module__
strobj = _PyType_GetModuleName(type);
strobj = PyType_GetModuleName(type);
if (strobj == NULL) {
return -1;
}