recursive closure

Ian Kelly ian.g.kelly at gmail.com
Thu Sep 11 02:37:49 EDT 2014


On Wed, Sep 10, 2014 at 10:00 PM, Li Tianqing <jazeltq at 163.com> 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 the flag, and I think you will find that gc.garbage no
longer accumulates.



More information about the Python-list mailing list