[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] Reduced testcase for lambda-related crash
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2007-02-18 16:01:41
Message-ID: 200702181601.41569.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]

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

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic