Reentrancy of Python interpreter

Brad Johnson Brad.Johnson at ballardtech.com
Fri Sep 28 17:31:32 EDT 2007


I have embedded a single threaded instance of the Python interpreter in my
application.

I have a place where I execute a Python command that calls into C++ code which
then in turn calls back into Python using the same interpreter. I get a fatal
error which is "PyThreadStage_Get: no current thread."

I guess I understand why I can't have two invocations of the same interpreter
thread in one call stack, but how would I go about solving this?




More information about the Python-list mailing list