summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.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/bltinmodule.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/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 787f53f..ac9bc72 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -12,6 +12,7 @@
#include "pycore_object.h" // _Py_AddToAllObjects()
#include "pycore_pyerrors.h" // _PyErr_NoMemory()
#include "pycore_pystate.h" // _PyThreadState_GET()
+#include "pycore_sysmodule.h" // _PySys_GetAttr()
#include "pycore_tuple.h" // _PyTuple_FromArray()
#include "clinic/bltinmodule.c.h"