Mario Beauchamp wrote: > Hi Gustavo, > > On 4/9/07, Gustavo J. A. M. Carneiro <[EMAIL PROTECTED]> wrote: >> >> See >> http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq08.004.htp > > Yes, that indeed does the trick but it means I have to add > gc.collect() everywhere I instantiate one of my types? That's kinda > counterproductive...
It's not recommended to call gc.collect() in production code, unless it's absolutely necessary. It's quite expensive to call it and in most cases not really needed. In most cases it's fine to wait until Python decides to call it. -- Johan Dahlin <[EMAIL PROTECTED]> Async Open Source _______________________________________________ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/