Check from C that Interpreter is running

Florian Schulze florian.proff.schulze at gmx.net
Tue Jul 22 19:54:30 CEST 2003


Hi!

I want to check from C that the Python Interpreter is still running and 
it's save to call things like PySys_GetObject, PyFile_WriteString etc. I 
need this in a C function which might be called during shutdown in a 
program embedding Python. Currently I get this error:

Fatal Python error: PyThreadState_Get: no current thread
Abort!

Regards,
Florian




More information about the Python-list mailing list