Re: embedded python and interpreter threads

2004-12-07 Thread Charlie DeTar
Woohoo, fixed my problem. It had to do with the way I was handling the methods which overwrote stderr and stdout. Yeehaw! =Charlie Charlie DeTar wrote: Quick correction, sorry - the command should read like this (I had omitted the "log" before 'CaptureStdout' and 'CaptureStderr'). Same probl

Re: embedded python and interpreter threads

2004-12-06 Thread Charlie DeTar
Quick correction, sorry - the command should read like this (I had omitted the "log" before 'CaptureStdout' and 'CaptureStderr'). Same problems exist. PyRun_SimpleString( "import log\n" "import sys\n" "class StdoutCatcher:\n" "\tdef write(self, str):\n"

embedded python and interpreter threads

2004-12-06 Thread Charlie DeTar
So, I have an amazing, functioning foobar class that embeds python. Only trouble is, I want to be able to have multiple foobar objects at once, each with their own interpreters, stdouts, and stderrs. My initialization of the python interpreter in the class "x" is as follows: [snip] if (!