I have a Windows routine that uses the Python Library. I started out with 3.6.5 and a static library. Got it to work. Moved to a .dll Python library. Also works. Moved to 3.7. Does NOT work. It hangs when I attempt to close the embedded Python with a call to PyGILState_Ensure() and then Py_Finalize(). It hangs on the call to PyGILState_Ensure().
So I backed off a bit and went with Python 3.6.6. This also works. Same code, just a different library. Has anyone else noticed a change in behavior of the GIL stuff for Python 3.7? In the documentation, they mentioned they made some changes with the GIL.