Python vs Java garbage collection?
Skip Montanaro
skip at pobox.com
Fri Dec 27 13:04:37 EST 2002
>>> It seems to me that it would most likely be a reference count.
>> But that would slow down assignments and parameter passing in
Martin> Yes, I assumed that that was at least a good part of the reason
Martin> Jython abandonded the traditional ref counting of CPython.
Not at all. Jython didn't abandon reference counting. It wasn't an option.
Jython compiles Python code to JVM bytecode, which is what implements the
garbage collection. In CPython, the C code which makes up the PyVM
implements reference counting.
--
Skip Montanaro - skip at pobox.com
http://www.musi-cal.com/
http://www.mojam.com/
More information about the Python-list
mailing list