Can this be stopped from leaking memory?
Niall Smart
niall.smart at ebeon.com
Thu Jun 8 16:19:51 EDT 2000
Hi,
I'm wondering if this can be stopped from leaking memory?
import imp
import time
for i in range(0, 20000):
fn = "mod.pyc"
m = imp.load_module(str(time.time()), open(fn, "rb"), fn, (".pyc", "rb", imp.PY_COMPILED))
m.main()
Where mod.py is:
def main():
print "foo"
or something else trivial.
--
Niall Smart
email: niall.smart at ebeon.com
phone: (087) 8052390
More information about the Python-list
mailing list