Re: recursive closure

2014-09-10 Thread Ian Kelly
On Wed, Sep 10, 2014 at 10:00 PM, Li Tianqing wrote: > gc.set_debug(gc.DEBUG_LEAK) The DEBUG_LEAK flag implies the DEBUG_SAVEALL flag, which causes all unreachable objects to be appended to gc.garbage rather than freed. https://docs.python.org/3/library/gc.html#gc.DEBUG_SAVEALL Try not setting

recursive closure

2014-09-10 Thread Li Tianqing
Hello, Can someone explain me why gc(CPython) can not collect recursive closure's cycle reference? There is no __del__ there, why gc can not collect? After many times gc collect, i also see objects like below in gc.garbage. So i ask why gc can not collect them? Thanks a lot. (, )