Re: object reincarnation

2009-06-11 Thread Carl Banks
On Jun 10, 12:34 pm, Manavan wrote: > Hello everyone, >    Since the real world objects often needs to be deleted even if they > have some reference from some other object, I am going to use this > approach to better model this situation, by cleaning up the attributes > and assigning self.__class_

Re: object reincarnation

2009-06-11 Thread alex23
On Jun 11, 5:34 am, Manavan wrote: > Since the real world objects often needs to be deleted even if they > have some reference from some other object [...] >From this it sounds like you're trying to implement some form of weak referencing. Are you familiar with weakref? "A weak reference to an o

Re: object reincarnation

2009-06-10 Thread Terry Reedy
Manavan wrote: Hello everyone, Since the real world objects often needs to be deleted even if they have some reference from some other object, I am going to use this approach to better model this situation, by cleaning up the attributes and assigning self.__class__ to a different class. Any c

object reincarnation

2009-06-10 Thread Manavan
Hello everyone, Since the real world objects often needs to be deleted even if they have some reference from some other object, I am going to use this approach to better model this situation, by cleaning up the attributes and assigning self.__class__ to a different class. Any comment on this ap