[issue12075] python3.2 memory leak when reloading class with attributes

Terry J. Reedy report at bugs.python.org
Sat May 21 22:34:05 CEST 2011


Terry J. Reedy <tjreedy at udel.edu> added the comment:

> my class also inherits from subprocess.Popen, which has a __del__ method, which might interfere w/ collection

The doc says __del__ *will* prevent collection.

> (although gc.garbage says otherwise ;).

Do you mean that gc.garbage is empty, when it should not be?

Have you tried replacing __del__ with an explicit close or cleanup method?

----------
nosy: +terry.reedy
title: python3.2 memory leak when setting integer key in dictionary -> python3.2 memory leak when reloading class with attributes

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


More information about the Python-bugs-list mailing list