recursive closure

Ian Kelly ian.g.kelly at
Thu Sep 11 08:37:49 CEST 2014

On Wed, Sep 10, 2014 at 10:00 PM, Li Tianqing <jazeltq at> 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.

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