Suitability for long-running text processing?

tsuraan tsuraan at gmail.com
Mon Jan 8 10:59:34 EST 2007


After reading
http://www.python.org/doc/faq/general/#how-does-python-manage-memory, I
tried modifying this program as below:

a=[]
> for i in xrange(33,127):
>  for j in xrange(33,127):
>   for k in xrange(33,127):
>    for l in xrange(33, 127):
>     a.append(chr(i)+chr(j)+chr(k)+chr(l))


import sys
sys.exc_clear()
sys.exc_traceback = sys.last_traceback = None

del(a)
> import gc
> gc.collect()


And it still never frees up its memory.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070108/fc0ed798/attachment.html>


More information about the Python-list mailing list