summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_pythonrun.h
Commit message (Collapse)AuthorAgeFilesLines
* gh-140222: Increase stack margin on debug build (#142452)Victor Stinner2025-12-091-3/+3
| | | Increase _PyOS_MIN_STACK_SIZE if Python is built in debug mode.
* gh-139653: Add PyUnstable_ThreadState_SetStackProtection() (#139668)Victor Stinner2025-11-131-0/+6
| | | | | | | | Add PyUnstable_ThreadState_SetStackProtection() and PyUnstable_ThreadState_ResetStackProtection() functions to set the stack base address and stack size of a Python thread state. Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-135801: Add the module parameter to compile() etc (GH-139652)Serhiy Storchaka2025-11-131-0/+6
| | | | | | | Many functions related to compiling or parsing Python code, such as compile(), ast.parse(), symtable.symtable(), and importlib.abc.InspectLoader.source_to_code() now allow to pass the module name used when filtering syntax warnings.
* gh-130396: Move PYOS_LOG2_STACK_MARGIN to internal headers (#135928)Victor Stinner2025-07-011-0/+22
| | | | | | Move PYOS_LOG2_STACK_MARGIN, PYOS_STACK_MARGIN, PYOS_STACK_MARGIN_BYTES and PYOS_STACK_MARGIN_SHIFT macros to pycore_pythonrun.h internal header. Add underscore (_) prefix to the names to make them private. Rename _PYOS to _PyOS.
* gh-132775: Add _PyCode_GetScriptXIData() (gh-133480)Eric Snow2025-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.
* 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.