[Beginner] delete items of [] also from memory

Birgit Rahm br_y at yahoo.de
Mon Nov 22 10:26:42 EST 2004


> What makes you think the memory is not given back to the system? Does the
memory
> occupied by your script increase and increase, or do you just see the
memory
> occupied by your script remain constant when you do the del a[:]? In the
latter
> case, it may be perfectly normal: it is quite frequent that the memory
freed by
> an operation is not returned immediatly to the system, but kept for future
use
> by the program.
>
ok, I think that helped me to understand what's going on in my program and
why the memory is not freed immediately. I will take del A[0:].
Thanks to all, Birgit





More information about the Python-list mailing list