This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients abathur, martin.panter, r.david.murray
Date 2015-04-11.23:03:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
My understanding is that the traceback is a linked list. Every time the exception is raised into a calling function or exception handler, a new traceback object is inserted at the front of the list. Your original traceback is not overwritten, it is just pushed back in the list. See my version of the demonstration script. The output is now:

a.__traceback__ before raise : [None]
a.__traceback__ after raise : [<traceback object at 0xb6fb3b1c>, None]
b.__traceback__ before raise : [<traceback object at 0xb6fb3b1c>, None]
b.__traceback__ after raise : [<traceback object at 0xb6fb3b44>, <traceback object at 0xb6fb3b1c>, None]
Date User Action Args
2015-04-11 23:03:49martin.pantersetrecipients: + martin.panter, r.david.murray, abathur
2015-04-11 23:03:49martin.pantersetmessageid: <>
2015-04-11 23:03:49martin.panterlinkissue23915 messages
2015-04-11 23:03:49martin.pantercreate