Re: annotate a traceback

2009-10-29 Thread Diez B. Roggisch
Robin Becker wrote: > I want to annotate a traceback in routine A which is raised in B. Useful > information in A is not available in B > > I propose to use something like > > def A(info): > try: > B() > except: > t,v,b=sys.exc_info()

annotate a traceback

2009-10-29 Thread Robin Becker
I want to annotate a traceback in routine A which is raised in B. Useful information in A is not available in B I propose to use something like def A(info): try: B() except: t,v,b=sys.exc_info() v.args = (' '.join(map(str,v.args))+',