catch output of threads

Martin v. Löwis martin at v.loewis.de
Fri Nov 29 16:05:25 EST 2002


William <wilk-spamout at flibuste.net> writes:

> It's why i cannot use this method... I specialy want to catch the output
> to don't mix the ouput from all the threads.
> 
> Is there a way to redefine print ? 

Yes, but you need to modify the interpreter source code. There is no
way in pure Python.

Regards,
Martin



More information about the Python-list mailing list