def __getattr__(self, name):
 if (name == '__del__'):
  raise AttributeError('Without this, Python segfaults.')
 updateInstance(self)
 log.msg(('(rebuilding stale %s instance (%s))' % (reflect.qual(self.__class__), name)))
 result = getattr(self, name)
 return result

def __getattr__ ( self , name ) : if ( name == '__del__' ) : raise AttributeError ( 'Without this, Python segfaults.' ) updateInstance ( self ) log . msg ( ( '(rebuilding stale %s instance (%s))' % ( reflect . qual ( self . __class__ ) , name ) ) ) result = getattr ( self , name ) return result
a getattr method to cause a class to be refreshed .