Suppress output to stdout/stderr in InteractiveInterpreter

Dave W. evadeflow at gmail.com
Fri Apr 16 00:54:45 CEST 2010


>                                 After your reply, I went back and
> discovered that everything was actually working fine with 'global'
> in place <snip>

Oops, I lied.  It still doesn't work.  It doesn't seem possible (or
at least not easy) to *globally* override the built-in print
function.  The best I've managed to do is override it for the
current module.

Think I'll start a new post with the subject: "Globally override
built-in print function?"



More information about the Python-list mailing list