]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106320: Remove private pythonrun API (#108599)
authorVictor Stinner <vstinner@python.org>
Tue, 29 Aug 2023 02:18:52 +0000 (04:18 +0200)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2023 02:18:52 +0000 (04:18 +0200)
commit15c5a50797020944e9ccb72bf3e28c3cca2e35c3
tree19d539d1c82456c79cb8a7d4f45bd117a60fdead
parent301eb7e607be6ea15c7a1e792f1cb927ba423932
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.
Include/cpython/pythonrun.h
Include/internal/pycore_pythonrun.h [new file with mode: 0644]
Makefile.pre.in
Modules/main.c
Modules/symtablemodule.c
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Python/bltinmodule.c
Python/pythonrun.c