Capturing interpreter errors

In Saturday, February 28, 2004, 1:55:10 PM, Jeff wrote:

I have a wxPython script that, when executing, gives an interpreter
error during parsing. The errors are printed to the stdout/stderr window,
which promptly disappears. How can I capture those errors?

<http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?11:mss:25263:200401:pggljnglcndkkdnepmjc&gt;

-- tacao