Suppress output to stdout/stderr in InteractiveInterpreter

Dave W. evadeflow at gmail.com
Thu Apr 15 18:54:45 EDT 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