[pygtk] More Help: Problems with the solution to: threads and pygtk

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Oct 6 09:17:53 WST 2006


David Hirschfield wrote:
> Will all objects created while the garbage collector was off now 
> be un-collectable?

No, they'll be collected the next time the garbage
collector becomes enabled and runs again.

Also note that disabling gc only affects objects
that are being kept alive by cycles. Non-cyclic
garbage is always collected as soon as its
refcount drops to zero, whether gc is enabled
or not.

--
Greg


More information about the pygtk mailing list