def __getitem__(self, index):
        # TODO : Numpy like support for indices that are Arrays ?
        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 = reduce(lambda x, y: Array._extract(x, y), index, self)
        # print "value and id", value, id(value)
        value = self.__class__._toCompOrConvert(value)
        # value = _toCompOrArray(value)
        # print "value and id", value, id(value)
        return value
The upload operation
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/util/arrays.py/Array.__getitem__--crossover with--dataset/ETHPy150Open kmpm/nodemcu-uploader/nodemcu_uploader/main.py/operation_upload