Appending traceback from exception in child thread
Edd
edd at nunswithguns.net
Sat May 16 05:43:25 EDT 2009
On May 16, 4:02 am, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
wrote:
> You could use the 3-argument form of the raise statement:http://docs.python.org/reference/simple_stmts.html#the-raise-statement
Ah! When did that get there? :)
> There is a problem: remember that the traceback object keeps a reference
> to all previous frames -- that means, all local variables along the whole
> stack of called functions are kept alive until you delete the traceback
> object. And depending on your application, that might involve thousand of
> objects "artificially" alive for an undeterminate period of time...
Yes, that may be problematic, I'll have to experiment.
Thanks to everyone's help here, I have plenty of alternatives if it
turns out to be problematic. Your comments are all greatly appreciated
-- thanks!
Kind regards,
Edd
More information about the Python-list
mailing list