def __setattr__(self, name, value):
    if (name in self.__dict__):
        raise self.ConstError(("Can't rebind const (%s)" % name))
    self.__dict__[name] = value
def __setattr__(self, name, value):
    if (name in self.__dict__):
        raise self.ConstError(("Can't rebind const (%s)" % name))
    self.__dict__[name] = value