[Tutor] help with refactoring needed -- which approach ismorePythonic?

Kent Johnson kent37 at tds.net
Fri Feb 11 20:19:14 CET 2005


Alan Gauld wrote:
> (And to pick up on someone else's question this is why you should
> put in a __del__ to tidy up the Node list when Body is destructed
> - otherwise you get circular references which can cause memory
> leaks by confusing the garbage collector!

CPython has been able to GC cycles since version 2.0.
http://www.amk.ca/python/2.0/index.html#SECTION000900000000000000000

AFAIK Java has always been able to GC cycles so Jython should be OK too.

Kent



More information about the Tutor mailing list