On Wed, Sep 10, 2014 at 10:00 PM, Li Tianqing <jaze...@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.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to