mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
gh-106320: Remove private _PyModule API (#107070)
Move private _PyModule API to the internal C API (pycore_moduleobject.h): * _PyModule_Clear() * _PyModule_ClearDict() * _PyModuleSpec_IsInitializing() * _PyModule_IsExtension() No longer export these functions.
This commit is contained in:
parent
0927a2b25c
commit
c1331ad508
2 changed files with 6 additions and 11 deletions
|
|
@ -8,6 +8,12 @@ extern "C" {
|
|||
# error "this header requires Py_BUILD_CORE define"
|
||||
#endif
|
||||
|
||||
extern void _PyModule_Clear(PyObject *);
|
||||
extern void _PyModule_ClearDict(PyObject *);
|
||||
extern int _PyModuleSpec_IsInitializing(PyObject *);
|
||||
|
||||
extern int _PyModule_IsExtension(PyObject *obj);
|
||||
|
||||
typedef struct {
|
||||
PyObject_HEAD
|
||||
PyObject *md_dict;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue