[pygtk] Garbage collection prematurely clears cyclical objects referenced from GTK callbacks
Hrvoje Nikšić
hrvoje.niksic at avl.com
Wed Aug 13 18:58:04 WST 2008
On Wed, 2008-08-13 at 11:28 +0100, Mark Seaborn wrote:
> On Wed, 2008-08-13 at 11:29 +0200, Hrvoje Nikšić wrote:
>
> > Traceback (most recent call last):
> > File "bug.py", line 9, in <lambda>
> > w.connect('delete-event', lambda *args: self.die())
> > NameError: free variable 'self' referenced before assignment in enclosing scope
>
> This looks like the bug I reported last week:
> http://bugzilla.gnome.org/show_bug.cgi?id=546802
> - "Pygtk destroys cycle too early"
Yes, this is it, and Gustavo's patch fixes the problem. Thanks!
More information about the pygtk
mailing list