GC question

Neil Schemenauer nas at python.ca
Thu Nov 8 20:18:46 CET 2001

Kerim Borchaev wrote:
> can someone, please, explain what does it mean and why it happens?

The DEBUG_LEAK setting sets DEBUG_SAVEALL.  That means that all objects
in unreachable cycles are added to gc.garbage.  If nested scopes are
used reference cycles can easily be created (they are in your program).
Other than the fact that DEBUG_LEAK is badly named if you enable nested
scopes, is there a problem?  What are you trying to achieve?


More information about the Python-list mailing list