[New-bugs-announce] [issue9072] Unloading modules - memleaks?
report at bugs.python.org
Thu Jun 24 21:32:49 CEST 2010
New submission from Slava <bomboze at gmail.com>:
I don't know whether this is a bug, but my exhaustive search led me to "Python can't really unload modules" from every direction, which I find hard to believe, I don't know where else to go with this.
import gc, sys
print len(gc.get_objects()) # 4073
# starting with 4073 objects in memory
# httplib should be unloaded
# and garbage collected as it is unreachable
print len(gc.get_objects()) # 6745
# 6745 objects in memory (2000+ stray objects)
This applies to almost any module.
Is this a bug or somehow correctable?
title: Unloading modules - memleaks?
type: resource usage
versions: Python 2.6
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce