Python 2.0 cyclic garbage collection -- newbie's question

Andrew Kuchling akuchlin at mems-exchange.org
Tue Oct 17 10:36:56 EDT 2000


"June Kim" <junaftnoon at nospamplzyahoo.com> writes:
> I was happy to see Python 2.0 final release and installed
> it right after its release. Reading "What's New in Python 2.0" 
> by A.M. Kuchling and Moshe Zadka, it seemed like the
> cyclic garbage collection has been added, but is not ON
> by default -- for the performance matter or whatever.

The article was out of date, and referred to the new GC features as
optional.  However, it was decided to leave them turned in for
2.0final.  The article has now been updated to take this into account.

> Is the cyclic garbage collection ON before the gc module is imported?

Yes; importing the gc module doesn't turn on garbage collection, but
only provide various functions for tuning the collector's behaviour.

--amk






More information about the Python-list mailing list