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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to