summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-24 20:02:09 (GMT)
committerGitHub <noreply@github.com>2023-08-24 20:02:09 (GMT)
commita071ecb4d13595f3580cf82061dcd7b39cd475c5 (patch)
treec744a2942c27476f0cd5c71faf336ad64142756a /Python/sysmodule.c
parent26893016a7f204b2e7138fc9ce04525a651c202e (diff)
downloadcpython-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 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 94d0f01..0ec763c 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -31,6 +31,7 @@ Data members:
#include "pycore_pymem.h" // _PyMem_SetDefaultAllocator()
#include "pycore_pystate.h" // _PyThreadState_GET()
#include "pycore_structseq.h" // _PyStructSequence_InitBuiltinWithFlags()
+#include "pycore_sysmodule.h" // Define _PySys_GetSizeOf()
#include "pycore_tuple.h" // _PyTuple_FromArray()
#include "frameobject.h" // PyFrame_FastToLocalsWithError()