Author vstinner
Recipients vstinner
Date 2015-03-24.14:44:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427208281.77.0.277796110738.issue23763@psf.upfronthosting.co.za>
In-reply-to
Content
pyerr_assert.patch: modify PyErr_SetObject() and PyErr_Format() to fail with an assertion error if these functions are called with an exception set.

This patch detects where an exception is raised while another exception was already raised (like "try: ... except: raise ...").

I'm using this patch to explicitly not chain exceptions where chaining exceptions would be pointless (ex: replace a TypeError with a new TypeError with a better error message).
History
Date User Action Args
2015-03-24 14:44:41vstinnersetrecipients: + vstinner
2015-03-24 14:44:41vstinnersetmessageid: <1427208281.77.0.277796110738.issue23763@psf.upfronthosting.co.za>
2015-03-24 14:44:41vstinnerlinkissue23763 messages
2015-03-24 14:44:41vstinnercreate