Py_NewInterpreter(), is this a bug in the python core?

freesteel zabaione at uk2.net
Mon Jul 10 17:05:54 EDT 2006


Yes, I see that now in the documentation, which to me is quite
confusing.
So, how do you use python in a multithreaded environment, where for
example you want to run some embeded python code from a number of
different C threads?

This article: http://www.linuxjournal.com/article/3641 is quite good,
but must have been written before these PyGILState_* functions.

I only used Py_NewInterpreter to have a fresh 'import sys'.

Somebody enlighten me, please.

Martin




More information about the Python-list mailing list