Garbage collector - please Help !!

A.M. Kuchling amk at mira.erols.com
Thu Jan 18 22:21:31 EST 2001


On Thu, 18 Jan 2001 18:54:33 -0500, Terry Reedy <tjreedy at udel.edu> wrote:
>> the reference counting gc in python 1.5 does not work if you have
>> cyclic references between objects. it is fixed in 2.0.
>
>If you explicitly import the gc module and call the gc function.

No, you don't need to import the gc module, which simply provides
tools for tuning the garbage collector and using it for debugging.  As
long as Python 2.0 wasn't compiled with GC disabled, cyclical data
structures should be collected (modulo a few known bugs fixed in 2.1).

--amk




More information about the Python-list mailing list