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

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to