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 -- http://mail.python.org/mailman/listinfo/python-list
- how to "free" an object/var ? Stef Mientki
- Re: how to "free" an object/var ? James Stroud
- Re: how to "free" an object/var ? Stef Mientki
- Re: how to "free" an object/var ? Steven D'Aprano
- Re: how to "free" an object/var ? Paddy
- Re: how to "free" an object/va... Steven D'Aprano
- Re: how to "free" an obje... Paddy
- Re: how to "free" an ... Steven D'Aprano
- Re: how to "free"... Paddy
- OT: Variant name spellings ... greg
- Re: OT: Variant name spelli... Ben Finney
- Re: how to "free"... Erik Max Francis
- Re: how to "free" an object/var ? John Nagle