mirror of
https://github.com/python/cpython.git
synced 2026-05-06 20:51:17 -04:00
fe462f5a91
We replace it with _Py_GetMainModule(), and add _Py_CheckMainModule(), but both in the internal-only C-API. We also add _PyImport_GetModulesRef(), which is the equivalent of _PyImport_GetModules(), but which increfs before the lock is released. This is used by a later change related to pickle and handling __main__.
Miscellaneous source files for the main Python shared library