[Python-Dev] PyEval_InitThreads() no longer safe before Py_Initialize() in 3.2

2011-02-25 Thread Juraj Ivančić
It seems that PyEval_InitThreads() can no longer be called before Py_Initialize(). I get a fatal error in PyThreadState_GET(). This contradicts the documentation http://docs.python.org/release/3.2/c-api/init.html#PyEval_InitThreads Minimal repro: #include "Python.h" int main() { PyEval_Init

Re: [Python-Dev] PyEval_InitThreads() no longer safe before Py_Initialize() in 3.2

2011-02-26 Thread Juraj Ivančić
On 26.2.2011 10:28, Eric Smith wrote: On 2/25/2011 3:48 AM, Juraj Ivančić wrote: It seems that PyEval_InitThreads() can no longer be called before Py_Initialize(). I get a fatal error in PyThreadState_GET(). This contradicts the documentation http://docs.python.org/release/3.2/c-api/init.html