Debug error message, what's it mean?

Shoemaker, Ronnie A. wrote:

A possible workaround to hide the debug messages is to redirect stderr and/or stdout just prior the offending call then redirect it back immediately after.

import sys
save_err = sys.stderr
sys.stderr = open("/dev/null", "w")
call the function
sys.stderr.close()
sys.stderr = save_err

I couldn't get this to work when calling a wx function. I guess it uses its own stderr/stdout, but I'm sure someone knows what that is.

In this case the messages are written to C++'s stderr so they can't be captured this way.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!