How to depress the output of an external module ?
Stefan Schwarzer
sschwarzer at sschwarzer.net
Tue Dec 26 09:33:47 EST 2006
Hi Luis,
Luis Armendariz wrote:
> There's no need for savestdout. There's a backup copy in sys.__stdout__
Depending on the code that ran before the call to the
function run_without_stdout, sys.stdout may not be
the same as sys.__stdout__ . Of course, you also have
to be careful regarding threads which also use
sys.stdout, perhaps implicitly via print statements.
Stefan
More information about the Python-list
mailing list