[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.

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


More information about the Tutor mailing list