parameters: (self, attr, value)
docstring: Hook for setting an attribute in `_param_dict`.
docstring_summary: Hook for setting an attribute in `_param_dict`.
docstring_tokens: Hook for setting an attribute in _param_dict .
function: def _setattr_param(self, attr, value):
          """Hook for setting an attribute in `_param_dict`."""
          old_value = self._param_dict[attr]
          self._param_dict[attr] = value
          new_value = self._param_dict[attr]
          if self._attached:
              try:
                  setattr(self._cpp_obj, attr, new_value)
              except (AttributeError):
                  self._param_dict[attr] = old_value
                  raise MutabilityError(attr)
function_tokens: def _setattr_param ( self , attr , value ) : old_value = self . _param_dict [ attr ] self . _param_dict [ attr ] = value new_value = self . _param_dict [ attr ] if self . _attached : try : setattr ( self . _cpp_obj , attr , new_value ) except ( AttributeError ) : self . _param_dict [ attr ] = old_value raise MutabilityError ( attr )