gh-132775: Add _PyCode_GetScriptXIData() (gh-133480)
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.
E
Eric Snow committed
c81fa2b9cd1ed4d4ff5c13984d6582c27e5f2633
Parent: f0f93ba
Committed by GitHub <noreply@github.com>
on 5/8/2025, 3:07:46 PM