[pygtk] Best practice for gobject deletion? connect as weakref?x

Alessandro Dentella sandro at e-den.it
Fri Feb 11 02:57:28 WST 2011


On Thu, Feb 10, 2011 at 07:46:50PM +0100, Alessandro Dentella wrote:
> What I'd like is to have a connect that only behaves as a weakref!
> 
> 
> This should be the key of some memory leaks I have, but I don't know which
> should be the best practices to follow when using GObject and signals and I
> didnt't find any documentation on this issue.

After sending this mail I found on stackoverflow this thread [1] that
addresses the same problem. I'm still interested to know which is the best
practice in this list.


[1] http://stackoverflow.com/questions/1364923/how-to-connect-to-a-gobject-signal-in-python-without-it-keeping-a-reference-to-t

thanks
sandro
*:-)


More information about the pygtk mailing list