def updateInstance(self):
 try:
  self.__class__ = latestClass(self.__class__)
 except TypeError:
  if hasattr(self.__class__, '__slots__'):
   raise RebuildError("Can't rebuild class with __slots__ on Python < 2.6")
  else:
   raise

def updateInstance ( self ) : try : self . __class__ = latestClass ( self . __class__ ) except TypeError : if hasattr ( self . __class__ , '__slots__' ) : raise RebuildError ( "Can't rebuild class with __slots__ on Python < 2.6" ) else : raise
updates an instance to be current .