[PyKDE] Reduced testcase for lambda-related crash
Phil Thompson
phil at riverbankcomputing.co.uk
Sun Feb 18 16:01:41 GMT 2007
On Saturday 03 February 2007 3:53 pm, Giovanni Bajo wrote:
> Hi Phil,
>
> I managed to reduce another small crashing testcase:
>
> ==========================================
> #!/usr/bin/env python
> from qt import *
> import weakref
>
> class myref(weakref.ref):
> pass
>
> a = QObject(None)
> wr = myref(a)
> wr._callback = lambda: wr
> QObject.connect(a, SIGNAL("destroyed()"), wr._callback)
> del a
> print "OK!"
> ==========================================
This will be fixed in tonight's SIP snapshot.
Phil
More information about the PyQt
mailing list