Smart help again
bearophileHUGS at lycos.com
bearophileHUGS at lycos.com
Mon Apr 11 15:39:10 EDT 2005
>You can create your own Exception class, based on this recipe:<
Thank you for your answer, the recipe you have suggested gives a very
big output, but it doesn't contain what I've asked for... :-) I was
asking to see that faulty method/function parameters (or the first line
of its docstring).
Probably the use of sys.excepthook is better, because you don't need
that
except: raise test.Error('xxx')
I've studied that solution of yours, and I think I still have to learn
many things about Python :-)
Bye, thank you,
Bearophile
More information about the Python-list
mailing list