Re: how to free the big list memory

2006-04-27 Thread Tim Peters
[kyo guan] > Python version 2.4.3 > > >>> l=range(50*1024*100) > > after this code, you can see the python nearly using about 80MB. > > then I do this > > >>> del l > > after this, the python still using more then 60MB, Why the python don't free > my > memory? It's that you've created 5 million i

Re: how to free the big list memory

2006-04-27 Thread harold
pydoc gc.collect pydoc xrange -- http://mail.python.org/mailman/listinfo/python-list

how to free the big list memory

2006-04-27 Thread kyo guan
Python version 2.4.3 >>> l=range(50*1024*100) after this code, you can see the python nearly using about 80MB. then I do this >>> del l after this, the python still using more then 60MB, Why the python don't free my memory? Is there any way to force the python free my memory? Thanks. Kyo.