Andre Pang wrote: [...] > to think about your object ownership model and get it right. (I > understand that later versions of Python can deal with circular > references properly; I'd be interested to know how if anyone has > details on this...)
Since Python 2.0, the CPython does periodic mark-and-sweep garbage collection, to collect objects that are unreachable despite having a non-zero reference count (i.e. they are part of an unreachable reference cycle). I guess this is what you're thinking of? See http://docs.python.org/lib/module-gc.html (note the caveat about objects with __del__ methods). http://docs.python.org/lib/module-weakref.html may also be of interest. -Andrew. _______________________________________________ coders mailing list coders@slug.org.au http://lists.slug.org.au/listinfo/coders