mirror of
https://github.com/python/cpython.git
synced 2026-05-07 13:10:37 -04:00
175a704abf
PyGILState_Ensure() doesn't call PyEval_InitThreads() anymore when a new Python thread state is created. The GIL is created by Py_Initialize() since Python 3.7, it's not needed to call PyEval_InitThreads() explicitly. Add an assertion to ensure that the GIL is already created.
Miscellaneous source files for the main Python shared library