Free Memory

Christian Heimes lists at cheimes.de
Fri May 9 05:37:53 EDT 2008


Dark Wind schrieb:
> Hi,
> 
> How can I free all the memory in python by deleting all variables. I am
> looking for the equivalent of 'clear' from Matlab.
> 
> I know del x deletes a variable x, but it doesn't free all the available
> memory.

del doesn't free an object. It only removes one reference to the object.

Christian




More information about the Python-list mailing list