diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-24 20:02:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-24 20:02:09 (GMT) |
commit | a071ecb4d13595f3580cf82061dcd7b39cd475c5 (patch) | |
tree | c744a2942c27476f0cd5c71faf336ad64142756a /Include/internal | |
parent | 26893016a7f204b2e7138fc9ce04525a651c202e (diff) | |
download | cpython-a071ecb4d13595f3580cf82061dcd7b39cd475c5.zip cpython-a071ecb4d13595f3580cf82061dcd7b39cd475c5.tar.gz cpython-a071ecb4d13595f3580cf82061dcd7b39cd475c5.tar.bz2 |
gh-106320: Remove private _PySys functions (#108452)
Move private functions to the internal C API (pycore_sysmodule.h):
* _PySys_GetAttr()
* _PySys_GetSizeOf()
No longer export most of these functions.
Fix also a typo in Include/cpython/optimizer.h: add a missing space.
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_sysmodule.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/internal/pycore_sysmodule.h b/Include/internal/pycore_sysmodule.h index aec9c20..9b8eafd 100644 --- a/Include/internal/pycore_sysmodule.h +++ b/Include/internal/pycore_sysmodule.h @@ -8,6 +8,12 @@ extern "C" { # error "this header requires Py_BUILD_CORE define" #endif +// Export for '_pickle' shared extension +PyAPI_FUNC(PyObject*) _PySys_GetAttr(PyThreadState *tstate, PyObject *name); + +// Export for '_pickle' shared extension +PyAPI_FUNC(size_t) _PySys_GetSizeOf(PyObject *); + extern int _PySys_Audit( PyThreadState *tstate, const char *event, |