Author Trundle
Recipients Trundle, kaizhu, mark.dickinson
Date 2010-12-25.17:20:19
SpamBayes Score 1.10648e-07
Marked as misclassified No
Message-id <>
It's because `PyErr_Fetch()` which is used in `atexit_callfuncs()` can return an unnormalized exception (e.g. if the exception is set with `PyErr_SetString()`. "value" is then a string). A simple call to `PyErr_NormalizeException()` fixes this issue.

Attached is a patch which fixes the issue and adds a test for it. I used exactly the same code ("1 / 0") to raise the exception, as I don't know if there is some clean way to raise an unnormalized exception.
Date User Action Args
2010-12-25 17:20:23Trundlesetrecipients: + Trundle, mark.dickinson, kaizhu
2010-12-25 17:20:23Trundlesetmessageid: <>
2010-12-25 17:20:19Trundlelinkissue10756 messages
2010-12-25 17:20:19Trundlecreate