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

Juraj Ivančić juraj.ivancic at gmail.com
Fri Feb 25 09:48:54 CET 2011


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_InitThreads();
     return 0;
}



More information about the Python-Dev mailing list