diff options
| author | Victor Stinner <vstinner@python.org> | 2023-07-22 21:41:11 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-22 21:41:11 (GMT) |
| commit | c1331ad50891b1727896afe62258bda73a459d40 (patch) | |
| tree | 02dc74c4cb765ef5056bc9c3d40f5d7d74eb69ca /Include/internal/pycore_moduleobject.h | |
| parent | 0927a2b25c059988e237108605ed8ab0c5459c53 (diff) | |
| download | cpython-c1331ad50891b1727896afe62258bda73a459d40.zip cpython-c1331ad50891b1727896afe62258bda73a459d40.tar.gz cpython-c1331ad50891b1727896afe62258bda73a459d40.tar.bz2 | |
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.
Diffstat (limited to 'Include/internal/pycore_moduleobject.h')
| -rw-r--r-- | Include/internal/pycore_moduleobject.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/internal/pycore_moduleobject.h b/Include/internal/pycore_moduleobject.h index 31a31e7..5644bbe 100644 --- a/Include/internal/pycore_moduleobject.h +++ b/Include/internal/pycore_moduleobject.h @@ -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; |
