[issue9366] Reference leak for local new style class

2010-07-29 Thread Georg Brandl
Georg Brandl ge...@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

[issue9366] Reference leak for local new style class

2010-07-24 Thread Kay Hayen
New submission from Kay Hayen kayha...@gmx.de: Hello, I have created tests that check the reference counting and found that the following simple function leaks references in CPython: def simpleFunction39(): class Parent( object ): pass I have attached a test that needs to be run