Re: how to "free" an object/var ?
- From: aahz@xxxxxxxxxxxxxxx (Aahz)
- Date: 31 Jan 2007 09:40:40 -0800
In article <AAXvh.1465$zH1.1114@xxxxxxxxxxxxxxxxxxxxxxxxxx>,
John Nagle <nagle@xxxxxxxxxxx> wrote:
Steven D'Aprano wrote:
On Tue, 30 Jan 2007 15:48:37 -0800, 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) ?
If your data structure has no backlinks, it will go away
as soon as the last reference to it disappears. If your
data structure has backlinks, it will hang around until
garbage collection runs. If your backlinks are
weak references (see "weakref"), the data structure will
be released much sooner.
Note that exceptions create links.
--
Aahz (aahz@xxxxxxxxxxxxxxx) <*> http://www.pythoncraft.com/
"I disrespectfully agree." --SJM
.
- References:
- how to "free" an object/var ?
- From: Stef Mientki
- Re: how to "free" an object/var ?
- From: James Stroud
- Re: how to "free" an object/var ?
- From: Steven D'Aprano
- Re: how to "free" an object/var ?
- From: John Nagle
- how to "free" an object/var ?
- Prev by Date: Re: Python **kwargs ?
- Next by Date: Re: DCOP memory leak?
- Previous by thread: Re: how to "free" an object/var ?
- Next by thread: Re: how to "free" an object/var ?
- Index(es):
Relevant Pages
|