[issue9366] Reference leak for local new style class

Georg Brandl report at bugs.python.org
Thu Jul 29 23:28:10 CEST 2010


Georg Brandl <georg at python.org> added the comment:

This is caused by the fact that new-style classes create reference cycles.  Try calling the cyclic garbage collector using gc.collect() after the function call, and the leaked references will vanish again.

----------
nosy: +georg.brandl
resolution:  -> duplicate
status: open -> closed
superseder:  -> Declaring a class creates circular references

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9366>
_______________________________________


More information about the Python-bugs-list mailing list