def assign(self, value):
        if type(value) == type(self) :
            self.data = value.data
        else :
            self.data = self.__class__(value).data
        return self
setting raw data content with python slicing
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/util/arrays.py/Array.assign--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/io/base.py/_BaseRaw.__setitem__