Python language != CPython implementation (was Re: Python vs Java gc?)

Oren Tirosh oren-py-l at hishome.net
Sun Dec 22 09:23:33 EST 2002


On Sat, Dec 21, 2002 at 04:44:43PM -0500, John Roth wrote:
> Python, on the other hand, uses a reference counting strategy.
> That tends to release unused objects immediately the last
> reference vanishes, however, it has problems with objects
> that are linked in a cycle. The latest versions fix this (mostly,)
> but it's still wise to break cycles manually to get the best
> results.

The CPython implmentation currently uses reference counting but the
Jython implementation of the Python language uses the garbage collector
of the underlying JVM. Future versions of CPython could conceivably 
use a different garbage collection strategy.

	Oren




More information about the Python-list mailing list