[PyQt] [SIP][PATCH]Errors occurring during execution of python __dtor__() function called from sip are discarded

Phil Thompson phil at riverbankcomputing.com
Thu Apr 9 13:00:29 BST 2009


On Mon, 06 Apr 2009 10:04:35 +0200, Alexis Boutillier
<alexis.boutillier at arteris.com> wrote:
> Hi,
> 
> When sip call the __dtor__() python function on a python object, it does 
> not print errors that occurred during the execution of the python
function.
> If something goes wrong in this function you are not informed and so you 
> can leave objects in an unwanted state (because of an attributeError for 
> example).
> 
> Here is a patch to siplib.c that print the python error if it occurred 
> during the call of the python "__dtor__()" function.

Thanks,
Phil


More information about the PyQt mailing list