def _swig_setattr_nondynamic_method(set):

    def set_attr(self, name, value):
        if (name == 'thisown'):
            return self.this.own(value)
        if (hasattr(self, name) or (name == 'this')):
            set(self, name, value)
        else:
            raise AttributeError(('You cannot add attributes to %s' % self))
    return set_attr
def _swig_setattr_nondynamic_method(set):

    def set_attr(self, name, value):
        if (name == 'thisown'):
            return self.this.own(value)
        if (hasattr(self, name) or (name == 'this')):
            set(self, name, value)
        else:
            raise AttributeError(('You cannot add attributes to %s' % self))
    return set_attr