(self, item, value)
Set a new value and make sure it follows any set limits.
Set a new value and make sure it follows any set limits.
Set a new value and make sure it follows any set limits .
def __setitem__(self, item, value):
        """Set a new value and make sure it follows any set limits."""
        try:
            info = self._data[item]

        except KeyError:
            if not self._editable_dict:
                raise

            self._data[item] = info = _process_input(value, self._default_settings)

        if info.get('lock', False):
            return
        
        config_item = create_config_item(self._data[item])
        config_item.value = value
        self._data[item]['value'] = config_item.value
def __setitem__ ( self , item , value ) : try : info = self . _data [ item ] except KeyError : if not self . _editable_dict : raise self . _data [ item ] = info = _process_input ( value , self . _default_settings ) if info . get ( 'lock' , False ) : return config_item = create_config_item ( self . _data [ item ] ) config_item . value = value self . _data [ item ] [ 'value' ] = config_item . value