SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 137 Python

bpo-39877: PyGILState_Ensure() don't call PyEval_InitThreads() (GH-18891)

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.
V
Victor Stinner committed
175a704abfcb3400aaeb66d4f098d92ca7e30892
Parent: addaaaa
Committed by GitHub <noreply@github.com> on 3/9/2020, 11:37:48 PM