[issue40292] Memory leak when defining a new class inside a loop

2020-04-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is not a leak. It is expected behavior when you call gc.set_debug(gc.DEBUG_SAVEALL). -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue40292] Memory leak when defining a new class inside a loop

2020-04-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Python2.7 gives similar results with: class A(object): pass -- nosy: +rhettinger ___ Python tracker ___ _

[issue40292] Memory leak when defining a new class inside a loop

2020-04-15 Thread pavlos kallis
New submission from pavlos kallis : Running the script, memory starts to leak and garbage count increases. Running the same script in python 2.7 does not cause the memory leak. -- components: C API files: memory_leak.py messages: 366495 nosy: pavlos kallis priority: normal severity: no