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, Deletion of a name

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? How do you

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/del.html puts it,

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 global

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 creating lots of

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

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) on the