mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
gh-111696, PEP 737: Add PyType_GetModuleName() function (#116824)
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
This commit is contained in:
parent
25cd8730aa
commit
c432df6d56
15 changed files with 48 additions and 27 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue