mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
bpo-46613: Add PyType_GetModuleByDef to the public API (GH-31081)
* Make PyType_GetModuleByDef public (remove underscore) Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
e0bcfd0e4d
commit
204946986f
21 changed files with 56 additions and 36 deletions
|
@ -38,7 +38,7 @@ get_struct_state(PyObject *module)
|
|||
static struct PyModuleDef _structmodule;
|
||||
|
||||
#define get_struct_state_structinst(self) \
|
||||
(get_struct_state(_PyType_GetModuleByDef(Py_TYPE(self), &_structmodule)))
|
||||
(get_struct_state(PyType_GetModuleByDef(Py_TYPE(self), &_structmodule)))
|
||||
#define get_struct_state_iterinst(self) \
|
||||
(get_struct_state(PyType_GetModule(Py_TYPE(self))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue