OT: Variant name spellings (Re: how to free an object/var ?)

2007-02-01 Thread greg
Steven D'Aprano wrote: Ste_ph_en??? I knew someone once who referred to the two ways of spelling Ste{v,ph}en as the dry way and the wet way... It's not like I spell my name with four M's and a silent Q like the famous author Farles Wickens *wink* Or Mr. Luxury-Yacht, which as we all know

Re: how to free an object/var ?

2007-02-01 Thread Erik Max Francis
Steven D'Aprano wrote: Ste_ph_en??? I know the ph-form of the name is marginally more popular, but dammit my name is right there just two lines above where Paddy started typing, how hard is it to get it right? It's not like I spell my name with four M's and a silent Q like the famous

Re: OT: Variant name spellings (Re: how to free an object/var ?)

2007-02-01 Thread Ben Finney
greg [EMAIL PROTECTED] writes: Or Mr. Luxury-Yacht, which as we all know is pronounced Throatwarbler-Mangrove. With a silent hyphen. You're a very silly person and I'm not going to interview you anymore. -- \ When I turned two I was really anxious, because I'd doubled my | `\ age in

Re: how to free an object/var ?

2007-01-31 Thread Paddy
On Jan 31, 7:34 am, Steven D'Aprano [EMAIL PROTECTED] wrote: On Tue, 30 Jan 2007 23:22:52 -0800, Paddy wrote: As far as I know there is no way to force the deletion of an object even if it is in use. This is a Good Thing. -- Steven D'Aprano The folowing will make the data available

Re: how to free an object/var ?

2007-01-31 Thread Aahz
In article [EMAIL PROTECTED], John Nagle [EMAIL PROTECTED] 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

Re: how to free an object/var ?

2007-01-31 Thread Terry Reedy
John Nagle [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] |If your data structure has no backlinks, it will go away | as soon as the last reference to it disappears. |In Python, garbage collection is mostly a backup to | the reference counting system. These both are true of

Re: how to free an object/var ?

2007-01-31 Thread Steven D'Aprano
On Wed, 31 Jan 2007 09:26:46 -0800, Paddy wrote: On Jan 31, 7:34 am, Steven D'Aprano [EMAIL PROTECTED] wrote: [snip] -- Steven D'Aprano Thanks Stephen for explaining my answer a bit more. Ste_ph_en??? I know the ph-form of the name is marginally more popular, but dammit my name is

Re: how to free an object/var ?

2007-01-31 Thread Paddy
On Feb 1, 1:45 am, Steven D'Aprano [EMAIL PROTECTED] wrote: On Wed, 31 Jan 2007 09:26:46 -0800, Paddy wrote: On Jan 31, 7:34 am, Steven D'Aprano [EMAIL PROTECTED] wrote: [snip] -- Steven D'Aprano Thanks Stephen for explaining my answer a bit more. Ste_ph_en??? I know the ph-form

how to free an object/var ?

2007-01-30 Thread Stef Mientki
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 -- http://mail.python.org/mailman/listinfo/python-list

Re: how to free an object/var ?

2007-01-30 Thread James Stroud
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

Re: how to free an object/var ?

2007-01-30 Thread Stef Mientki
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

Re: how to free an object/var ?

2007-01-30 Thread Aahz
In article [EMAIL PROTECTED], Stef Mientki [EMAIL PROTECTED] wrote: If I create a large array of data or class, how do I destroy it (when not needed anymore) ? You should be aware that releasing memory may not cause the size of your process to shrink -- many OSes keep memory assigned to an

Re: how to free an object/var ?

2007-01-30 Thread Steven D'Aprano
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) ? 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

Re: how to free an object/var ?

2007-01-30 Thread John Nagle
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

Re: how to free an object/var ?

2007-01-30 Thread Steven D'Aprano
On Tue, 30 Jan 2007 23:22:52 -0800, Paddy wrote: As far as I know there is no way to force the deletion of an object even if it is in use. This is a Good Thing. -- Steven D'Aprano The folowing will make the data available for garbage collection no matter what references it: l = [data]