summaryrefslogtreecommitdiffstats
path: root/Python/intrinsics.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/intrinsics.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/intrinsics.c')
-rw-r--r--Python/intrinsics.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/intrinsics.c b/Python/intrinsics.c
index 5267c10..fefee0f 100644
--- a/Python/intrinsics.c
+++ b/Python/intrinsics.c
@@ -4,10 +4,11 @@
#include "Python.h"
#include "pycore_frame.h"
#include "pycore_function.h"
-#include "pycore_runtime.h"
#include "pycore_global_objects.h"
#include "pycore_intrinsics.h"
#include "pycore_pyerrors.h"
+#include "pycore_runtime.h"
+#include "pycore_sysmodule.h" // _PySys_GetAttr()
#include "pycore_typevarobject.h"