Re: stdout/stderr for only one thread in a multithreaded python app

2006-07-14 Thread Antoon Pardon
On 2006-07-13, notanotheridiot <[EMAIL PROTECTED]> wrote: > Hi- > > I'm trying to exec some arbitrary code in one thread of an application > and read anything it prints to stdout or stderr in another thread. My > question is how? > > I've tried changing sys.stdout, but that changes stdout for the w

stdout/stderr for only one thread in a multithreaded python app

2006-07-13 Thread notanotheridiot
Hi- I'm trying to exec some arbitrary code in one thread of an application and read anything it prints to stdout or stderr in another thread. My question is how? I've tried changing sys.stdout, but that changes stdout for the whole application, not just that one thread, which means that any statu