[Beginner] delete items of [] also from memory

F. Petitjean littlejohn.75 at noos.fr
Mon Nov 22 08:20:20 EST 2004


On Mon, 22 Nov 2004 11:56:26 +0100, Birgit Rahm <br_y at yahoo.de> wrote:
>>  But...  And if you try ?
>>
> I tryed A = [].
> And  I think thats why my RAM is filling up. But I dont know if this is the
> problem. So I asked.
> Is del A[0:] the better or an equal solution?
> Birgit
> 
What about   A[:] = None  ?

PS  I have not seen the parent message, so take this advice with a handful
of salt.



More information about the Python-list mailing list