summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-24 18:25:22 (GMT)
committerGitHub <noreply@github.com>2023-08-24 18:25:22 (GMT)
commitc494fb333b57bdf43fc90189fc29a00c293b2987 (patch)
treea5d6ade6fcadaffadce8f400d079f615f5d0ad76 /Modules
parent995f4c48e11349fbfb9233e02b732d4534d3008e (diff)
downloadcpython-c494fb333b57bdf43fc90189fc29a00c293b2987.zip
cpython-c494fb333b57bdf43fc90189fc29a00c293b2987.tar.gz
cpython-c494fb333b57bdf43fc90189fc29a00c293b2987.tar.bz2
gh-106320: Remove private _PyEval function (#108433)
Move private _PyEval functions to the internal C API (pycore_ceval.h): * _PyEval_GetBuiltin() * _PyEval_GetBuiltinId() * _PyEval_GetSwitchInterval() * _PyEval_MakePendingCalls() * _PyEval_SetProfile() * _PyEval_SetSwitchInterval() * _PyEval_SetTrace() No longer export most of these functions.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_lsprof.c1
-rw-r--r--Modules/_queuemodule.c1
-rw-r--r--Modules/_threadmodule.c1
-rw-r--r--Modules/arraymodule.c1
-rw-r--r--Modules/itertoolsmodule.c1
5 files changed, 5 insertions, 0 deletions
diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c
index 257de43..e7dcb6e 100644
--- a/Modules/_lsprof.c
+++ b/Modules/_lsprof.c
@@ -4,6 +4,7 @@
#include "Python.h"
#include "pycore_call.h" // _PyObject_CallNoArgs()
+#include "pycore_ceval.h" // _PyEval_SetProfile()
#include "pycore_pystate.h" // _PyThreadState_GET()
#include "rotatingtree.h"
diff --git a/Modules/_queuemodule.c b/Modules/_queuemodule.c
index b0a36f0..b4bafb3 100644
--- a/Modules/_queuemodule.c
+++ b/Modules/_queuemodule.c
@@ -3,6 +3,7 @@
#endif
#include "Python.h"
+#include "pycore_ceval.h" // _PyEval_MakePendingCalls()
#include "pycore_moduleobject.h" // _PyModule_GetState()
#include "pycore_time.h" // _PyTime_t
diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c
index 52f44d0..984747c 100644
--- a/Modules/_threadmodule.c
+++ b/Modules/_threadmodule.c
@@ -3,6 +3,7 @@
/* Interface to Sjoerd's portable C thread library */
#include "Python.h"
+#include "pycore_ceval.h" // _PyEval_MakePendingCalls()
#include "pycore_interp.h" // _PyInterpreterState.threads.count
#include "pycore_moduleobject.h" // _PyModule_GetState()
#include "pycore_pylifecycle.h"
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c
index 5c1e6cb..309a369 100644
--- a/Modules/arraymodule.c
+++ b/Modules/arraymodule.c
@@ -10,6 +10,7 @@
#include "Python.h"
#include "pycore_bytesobject.h" // _PyBytes_Repeat
#include "pycore_call.h" // _PyObject_CallMethod()
+#include "pycore_ceval.h" // _PyEval_GetBuiltin()
#include "pycore_long.h" // _PyLong_FromByteArray()
#include "pycore_moduleobject.h" // _PyModule_GetState()
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index 0ab6d33..4ed34aa 100644
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -1,5 +1,6 @@
#include "Python.h"
#include "pycore_call.h" // _PyObject_CallNoArgs()
+#include "pycore_ceval.h" // _PyEval_GetBuiltin()
#include "pycore_long.h" // _PyLong_GetZero()
#include "pycore_moduleobject.h" // _PyModule_GetState()
#include "pycore_typeobject.h" // _PyType_GetModuleState()