mirror of
https://github.com/python/cpython.git
synced 2026-05-06 20:51:17 -04:00
c81fa2b9cd
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.
Miscellaneous source files for the main Python shared library