Jason Tackaberry wrote: > On Fri, 2008-01-18 at 23:00 +0100, Dirk Meyer wrote: >> I added some doc for this. This task should be done in two steps. >> First make sure yield_execution always returns an InProgress object >> and second add the new Python 2.5 code. I did some changes and added >> some doc. I will stop here to discuss my notes in the file first and >> test all the other changes I made in kaa.notifier. > > Another thing we want to do is change the arguments passed to exception > signals (in InProgress, and other places) to receive three arguments: > exc_type, exc_instance, traceback. It can be done with: > > try: > somefunc() > except Exception, e: > exception_handler(e.__class__, e, sys.exc_traceback)
I'm not sure. I prefer the current way to add the traceback to the exception. In some parts of the code we give the exception to other parts of the code using 'raise'. In that case we will loose all the other information. Dischi -- Nothing is ever a total loss; it can always serve as a bad example.
pgpc7OCBP4Uee.pgp
Description: PGP signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel