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/pythonrun.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/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index a2b50c0..231ac78 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -21,6 +21,7 @@ #include "pycore_pyerrors.h" // _PyErr_GetRaisedException, _Py_Offer_Suggestions #include "pycore_pylifecycle.h" // _Py_UnhandledKeyboardInterrupt #include "pycore_pystate.h" // _PyInterpreterState_GET() +#include "pycore_pythonrun.h" // define _PyRun_InteractiveLoopObject() #include "pycore_sysmodule.h" // _PySys_Audit() #include "pycore_traceback.h" // _PyTraceBack_Print_Indented() |