On Wed, 14 May 2008 15:47:18 -0500, "David C. Ullrich" <[EMAIL PROTECTED]> 
wrote:
[snip]

Came up with a ridiculous hack involving both sys.stderr
and sys.excepthook. Works exactly the way I want.
Seems ridiculous - what's the right way to do this?

[snip]

Hi David,

Take a look at the traceback module.  The excepthook gets called with
an exception type, instance, and traceback object.  The traceback module
is good at turning these things into strings.

Jean-Paul
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to