diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-29 02:18:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-29 02:18:52 (GMT) |
commit | 15c5a50797020944e9ccb72bf3e28c3cca2e35c3 (patch) | |
tree | 19d539d1c82456c79cb8a7d4f45bd117a60fdead /Python/bltinmodule.c | |
parent | 301eb7e607be6ea15c7a1e792f1cb927ba423932 (diff) | |
download | cpython-15c5a50797020944e9ccb72bf3e28c3cca2e35c3.zip cpython-15c5a50797020944e9ccb72bf3e28c3cca2e35c3.tar.gz cpython-15c5a50797020944e9ccb72bf3e28c3cca2e35c3.tar.bz2 |
gh-106320: Remove private pythonrun API (#108599)
Remove these private functions from the public C API:
* _PyRun_AnyFileObject()
* _PyRun_InteractiveLoopObject()
* _PyRun_SimpleFileObject()
* _Py_SourceAsString()
Move them to the internal C API: add a new pycore_pythonrun.h header
file. No longer export these functions.
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index ac9bc72..30dd717 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_pythonrun.h" // _Py_SourceAsString() #include "pycore_sysmodule.h" // _PySys_GetAttr() #include "pycore_tuple.h" // _PyTuple_FromArray() |