PyThreadState_Swap(NULL)
Bryan
belred at gmail.com
Sun Aug 20 11:37:04 EDT 2006
let me try to ask the question again in a simpler more generic way. i thought
that the following lines of code, could not fail even if another library in the
same process initialized the python interpreter first.
if (!Py_IsInitialized()) {
Py_Initialize();
}
PyEval_InitThreads();
interpreter = PyThreadState_Swap(NULL);
what could another library do to make this fail? and is there anything i can do
to make this work in all situations?
thanks,
bryan
More information about the Python-list
mailing list