question about sys.exc_type and sys.exc_value

John Salerno johnjsal at NOSPAMgmail.com
Sat Mar 4 20:21:57 EST 2006


John Salerno wrote:

> MyError? The sample in the book shows "Got hello world", because hello 
> is the error name and world is the extra data. But mine doesn't seem to 
> work that way. (They are also using a string exception in the book, 
> instead of a class.)

My mistake. In the book the exception is:

MyError = 'hello'

and the extra data is 'world'



More information about the Python-list mailing list