How to run more than one instance of the Python interpreter in one process?

Syver Enstad syver at NOSPAMcyberwatcher.com
Sat Jan 6 20:40:44 EST 2001


I am fiddling around with embedding Python in C/C++ and am trying to run one
interpreter per thread. I've tried using the Py_NewInterpreter and
Py_EndInterpreter for each thread but it doesn't seem to be enough because I
trigger access violations in the interpreter so I am obviously missing a
couple of things. Are there any examples on how to do these kinds of things
other than the very sparse code in the demo folder of the source
distribution.

Any help much appreciated.





More information about the Python-list mailing list