[pygtk] PyGObject leaking?
Johan Dahlin
jdahlin at async.com.br
Tue Apr 10 20:27:35 WST 2007
Mario Beauchamp wrote:
> Hi Gustavo,
>
> On 4/9/07, Gustavo J. A. M. Carneiro <gjc at inescporto.pt> 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 <jdahlin at async.com.br>
Async Open Source
More information about the pygtk
mailing list