how to "free" an object/var ?

James Stroud jstroud at
Wed Jan 31 00:48:37 CET 2007

Stef Mientki wrote:
> If I create a large array of data or class,
> how do I destroy it (when not needed anymore) ?
> Assign it to an empty list ?
> thanks,
> Stef Mientki

It will be gc'd when you leave the scope or you can call del() to 
explicitly get rid of the object if its existence bothers you.


More information about the Python-list mailing list