def __setitem__(self, index, value):
        # NUMPY differences: expands by repeating last value
        """
            >>> A[0:2, 1:3] = [[1], [2]]
            >>> print A.formated()
            [[1, 1, 1],
             [1, 2, 2],
             [1, 2, 0]]
        """

        if not hasattr(index, '__iter__') :
            index = [index]
        else :
            index = list(index)
        if len(index) > self.ndim :
            raise ValueError, "%s coordinates provided for an Array of dimension %s" % (len(index), self.ndim)
        value = _toCompOrArray(value)
        vshape, vdim, vsize = _shapeInfo(value)
        subexpected = self.__getitem__(index)
        subshape, subdim, subsize = _shapeInfo(subexpected)
        # if we don't except a single numeric value
        if vshape != subshape :
            try :
                value = Array(value, shape=subshape)
            except :
                raise ValueError, "shape mismatch between value(s) and Array components or sub Arrays designated by the indexing"
        self._inject(index, value)
Returns:
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/util/arrays.py/Array.__setitem__--crossover with--dataset/ETHPy150Open meraki-analytics/cassiopeia/cassiopeia/type/core/league.py/League.name