Memory Management in python 2.5
Fredrik Lundh
fredrik at pythonware.com
Mon Oct 9 06:15:04 EDT 2006
cesar.ortiz at gmail.com wrote:
>I just checked the comsuptiom with the 'top' unix util. I am procesing
> html docs and the amount of memory rises continiously.
what library are you using for this ?
> I am using a lot of lists and docs. Some of them with objects. Do i
> have to make any special thing in order to get them released back to
> the Memory Manager? For instantec.. is it enough to do a clear() in a
> dictionary?
the garbage collector should take care of that, unless you're doing something
fishy. maybe you're keeping pointers to documents you've already processed
in some data structure somewhere?
</F>
More information about the Python-list
mailing list