IDLE doesn't show stderr output from extension modules

Brian Cole coleb2 at gmail.com
Fri Dec 19 17:40:23 EST 2008


I'm importing an extension module created with SWIG. When working with
the module interactively in IDLE there should be warning and error
messages printed to stderr by the extension module. However, these are
not being caught by the IDLE window, they are going directly to the
terminal that was used to start IDLE.

Strange, because sys.stderr.write() does print to the IDLE window.
I've tried this on Windows and OSX, so it doesn't appear to be a
platform issue. Is this just a fundamental deficiency in the IDLE
shell prompt?

-Brian



More information about the Python-list mailing list