(self, key, value)
Sets the item on the specified position.
Sets the item on the specified position.
Sets the item on the specified position .
def __setitem__(self, key, value):
    """Sets the item on the specified position."""
    if isinstance(key, slice):  # PY3
      if key.step is not None:
        raise ValueError('Extended slices not supported')
      self.__setslice__(key.start, key.stop, value)
    else:
      self._values[key] = self._type_checker.CheckValue(value)
      self._message_listener.Modified()
def __setitem__ ( self , key , value ) : if isinstance ( key , slice ) : # PY3 if key . step is not None : raise ValueError ( 'Extended slices not supported' ) self . __setslice__ ( key . start , key . stop , value ) else : self . _values [ key ] = self . _type_checker . CheckValue ( value ) self . _message_listener . Modified ( )