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

Re: python has memory leak?

2008-04-22 Thread Jean-Paul Calderone
On Tue, 22 Apr 2008 14:54:37 -0700 (PDT), [EMAIL PROTECTED] wrote: Hi all, I feel that my python script is leaking memory. And this is a test I have: [snip] The test doesn't demonstrate any leaks. It does demonstrate that memory usage can remain at or near peak memory usage even after the o

Re: python has memory leak?

2008-04-22 Thread Christian Heimes
[EMAIL PROTECTED] schrieb: > The version of my python is: > Python 2.4.4 Stackless 3.1b3 060516 (#71, Oct 31 2007, 14:22:28) [MSC ^ This is the wrong list to ask for memory leaks of Stackless ;) Christian -- http://mail.python.org/mailman/listinfo/python-list

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