summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_pythonrun.h
Commit message (Collapse)AuthorAgeFilesLines
* [3.14] gh-132775: Add _PyCode_GetScriptXIData() (gh-133676)Miss Islington (bot)2025-05-081-0/+1
| | | | | | | | | | | This converts functions, code, str, bytes, bytearray, and memoryview objects to PyCodeObject, and ensure that the object looks like a script. That means no args, no return, and no closure. _PyCode_GetPureScriptXIData() takes it a step further and ensures there are no globals. We also add _PyObject_SupportedAsScript() to the internal C-API. (cherry picked from commit c81fa2b9cd1ed4d4ff5c13984d6582c27e5f2633, AKA gh-133480) Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
* gh-106320: Remove private pythonrun API (#108599)Victor Stinner2023-08-291-0/+39
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.