STINNER Victor added the comment: > Perhaps we can fix PyGILState to call PyEval_InitThreads automatically?
Yes, I had the same idea. Here is a patch to call PyEval_InitThreads() in PyGILState_Ensure() for new threads. ---------- keywords: +patch Added file: http://bugs.python.org/file32609/PyGILState_Ensure.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19576> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com