Re: Cleanup on object destruction

AnyOldName3 <[email protected]>
Newsgroups gmane.comp.python.pyqt-pykde
Message-ID <[email protected]>
To clarify, responsibility for the object's deletion has been transferred to
C++ with SIP's api_transfer_to(ptr, Py_None), so I can guarantee that at
least the C++ object's destructor gets called, and SIP calls the Python
destructor during that. The cleanup /has/ to happen before or very early
during that destructor, or there's no way to actually do the cleanup.
I have had a look through the C++ code SIP spits out, though, and it seems
the Python destructor its calling is __dtor__ rather than the regular
__del__, so switching to that might well solve my issue.



--
Sent from: http://python.6.x6.nabble.com/PyQt-f1792048.html

_______________________________________________
PyQt mailing list    [email protected]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.