[PyQt] Lambdas, Closures and Garbage Collection

Phil Thompson phil at riverbankcomputing.com
Tue Sep 2 22:09:36 BST 2008

On Tue, 02 Sep 2008 20:30:20 +0200, charles matthew chen
<charles.chen at temboo.com> wrote:
> Hi Phil,
>    The documented behavior of sip/pyqt - to keep strong references to 
> slots except instance methods - isn't desirable from our project's point 
> of view.  Is there any easy way to patch SIP to disable this behavior?


> We'd like closures, lambdas, etc. to be garbage collected if no other 
> strong reference remains to them.

You want to force programmers to keep an explicit reference to a lambda?
That rather misses the point doesn't it?


More information about the PyQt mailing list