[Python-Dev] thread issues when embedding Python

Victor Stinner victor.stinner at gmail.com
Wed Dec 18 16:29:00 CET 2013


2013/12/18 Antoine Pitrou <solipsis at pitrou.net>:
> You only need to call PyEval_InitThreads() once in the main Python
> thread.

This is not well documented. For your information, PyGILState_Ensure()
now calls PyEval_InitThreads() in Python 3.4, see:
http://bugs.python.org/issue19576

Victor


More information about the Python-Dev mailing list