
Quoth Walter Dörwald:
Steven Taschuk wrote:
[...] I would also like the traceback to be an attribute of the exception object (circular references be damned!), specified by optional keyword argument to Exception.__init__. [...]
Wouldn't it make more sense to associate the traceback with the exception instance when the exception is raised, not when the exception is instantiated? As long as the exception isn't raised it's just a normal object without a traceback attached.
Absolutely; my notion to use __init__ above actually makes no sense, I subsequently realized. Consider it withdrawn. -- Steven Taschuk o- @ staschuk@telusplanet.net 7O ) " (