Re: PyThreadState_Swap(NULL)

2006-08-20 Thread Bryan
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(); interpr

Re: PyThreadState_Swap(NULL)

2006-08-19 Thread Jack Diederich
On Sat, Aug 19, 2006 at 09:08:21AM -0700, Bryan wrote: > Jack Diederich wrote: > > On Fri, Aug 18, 2006 at 02:21:40PM -0700, Bryan wrote: > >> i've written a program that uses python c api code that lives in a > >> shared library that is loaded by a custom apache module (mod_xxx). this > >> pyth

Re: PyThreadState_Swap(NULL)

2006-08-19 Thread Bryan
Jack Diederich wrote: > On Fri, Aug 18, 2006 at 02:21:40PM -0700, Bryan wrote: >> i've written a program that uses python c api code that lives in a >> shared library that is loaded by a custom apache module (mod_xxx). this >> python c api code all works correctly under our test server and under

Re: PyThreadState_Swap(NULL)

2006-08-19 Thread Jack Diederich
On Fri, Aug 18, 2006 at 02:21:40PM -0700, Bryan wrote: > > i've written a program that uses python c api code that lives in a > shared library that is loaded by a custom apache module (mod_xxx). this > python c api code all works correctly under our test server and under > apache but only if mo