Re: Deleting objects on the fly

2007-08-11 Thread Steve Holden
Dustan wrote: > On Aug 10, 1:49 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: >> "Campbell Barton" <[EMAIL PROTECTED]> wrote in message >> >> news:[EMAIL PROTECTED]| Michele Simionato wrote: >> >> | > Probably not, 'del x' just decrements the reference count, >> >> Or ashttp://docs.python.org/ref/de

Re: Deleting objects on the fly

2007-08-11 Thread Paul Rubin
Dustan <[EMAIL PROTECTED]> writes: > > | del x will remove x from memory if nothing else is refering to it, > > This is implementation dependent: true for CPython, not for Jython, ??? for > > IronPython. > Wait a second; do you mean to say that in Jython, del x will never > remove x from memory? Ho

Re: Deleting objects on the fly

2007-08-11 Thread Dustan
On Aug 10, 1:49 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > "Campbell Barton" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED]| Michele Simionato wrote: > > | > Probably not, 'del x' just decrements the reference count, > > Or ashttp://docs.python.org/ref/del.html > puts it, " Del

Re: Deleting objects on the fly

2007-08-10 Thread Terry Reedy
"Campbell Barton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Michele Simionato wrote: | > Probably not, 'del x' just decrements the reference count, Or as http://docs.python.org/ref/del.html puts it, " Deletion of a name removes the binding of that name from the local or glob

Re: Deleting objects on the fly

2007-08-10 Thread Campbell Barton
Michele Simionato wrote: > On Aug 10, 2:25 am, Godzilla <[EMAIL PROTECTED]> wrote: >> Hello, >> >> I wish to know whether I should delete objects created on the fly via >> the "del obj" statement. I noticed the RAM usage increased whenever >> the application is being run for a long time. I am creat

Re: Deleting objects on the fly

2007-08-09 Thread Michele Simionato
On Aug 10, 2:25 am, Godzilla <[EMAIL PROTECTED]> wrote: > Hello, > > I wish to know whether I should delete objects created on the fly via > the "del obj" statement. I noticed the RAM usage increased whenever > the application is being run for a long time. I am creating lots of > objects (messages)

Deleting objects on the fly

2007-08-09 Thread Godzilla
Hello, I wish to know whether I should delete objects created on the fly via the "del obj" statement. I noticed the RAM usage increased whenever the application is being run for a long time. I am creating lots of objects (messages) on the fly for communication between threads. Rather than having