bpo-20891: Fix PyGILState_Ensure() (#4650)
When PyGILState_Ensure() is called in a non-Python thread before PyEval_InitThreads(), only call PyEval_InitThreads() after calling PyThreadState_New() to fix a crash. Add an unit test in test_embed.
V
Victor Stinner committed
b4d1e1f7c1af6ae33f0e371576c8bcafedb099db
Parent: 986375e
Committed by GitHub <noreply@github.com>
on 11/30/2017, 9:05:00 PM