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 vstinner
Recipients vstinner
Date 2015-03-24.14:44:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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).
Date User Action Args
2015-03-24 14:44:41vstinnersetrecipients: + vstinner
2015-03-24 14:44:41vstinnersetmessageid: <>
2015-03-24 14:44:41vstinnerlinkissue23763 messages
2015-03-24 14:44:41vstinnercreate