Re: python has memory leak?

2008-04-23 Thread yzghan
Thanks to Christian and Jean-Paul for your reply. I moved away from the stackless version (which I don't understand what uniqueness it comes with) and downloaded a fresh copy of Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32. Following J-P's suggestion, I incl

python has memory leak?

2008-04-22 Thread yzghan
Hi all, I feel that my python script is leaking memory. And this is a test I have: log.write("[" + timestamp() + "] " + "test() ... memory usage: " + " ".join(repr(i/(1024*1024)) for i in getMemInfo()) + "\n") m = {} i = 1000*1000 while i > 0: i = i - 1 m.setdefaul