Re: modifying __class__

2007-10-28 Thread Gabriel Genellina
En Fri, 26 Oct 2007 04:49:37 -0300, Evan Klitzke <[EMAIL PROTECTED]> escribi�: > On 10/26/07, Piyush Jain <[EMAIL PROTECTED]> wrote: >> Hi, >> Itis possible to change the class of an object by assigning new value to >> __class__ >> Is it possible to call my module when it is done. >> For example,

Re: modifying __class__

2007-10-26 Thread Evan Klitzke
On 10/26/07, Piyush Jain <[EMAIL PROTECTED]> wrote: > Hi, > Itis possible to change the class of an object by assigning new value to > __class__ > Is it possible to call my module when it is done. > For example, > object = ClassA() > > object.__class__ = classB # I want to call my method when this

modifying __class__

2007-10-26 Thread Piyush Jain
Hi, Itis possible to change the class of an object by assigning new value to __class__ Is it possible to call my module when it is done. For example, object = ClassA() object.__class__ = classB # I want to call my method when this statement is executed. I want to do it in a general way. For ex. ,