how to "free" an object/var ?
Stef Mientki
S.Mientki-nospam at mailbox.kun.nl
Tue Jan 30 18:53:51 EST 2007
James Stroud wrote:
> 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.
>
> James
thanks James,
indeed, large objects, are sometimes bothering me,
and assigning it to an empty list requires comment ;-)
cheers,
Stef
More information about the Python-list
mailing list