Circular references not being cleaned up by Py_Finalize()

2008-03-25 Thread blackpawn
I've been trying to get garbage collection of circular references to work properly with no success then I noticed the documentation stating that it just doesn't: >From documentation on Py_Finalize() -> "Memory tied up in circular references between objects is not freed. " I copy pasted the Noddy

Re: Circular references not being cleaned up by Py_Finalize()

2008-03-25 Thread blackpawn
> Does the Noddy example use GC (Py_TPFLAGS_HAVE_GC)? Container objects > must use the cycle GC or circular referneces aren't broken. Have you > tried calling PyGC_Collect() multiple times? Yeah the Noddy example is from "2.1.3 Supporting cyclic garbage collection" part of the Python docs. They l