def __contains__(self, value):
        shape = self.shape
        ndim = self.ndim
        if shape != () :
            value = _toCompOrArray(value)
            vshape, vdim, vsize = _shapeInfo(value)
            if vdim < ndim and self.shape[ndim-vdim:] == vshape[:] :
                for sub in self.subiter(vdim) :
                    if sub == value :
                        return True
        return False
a.__contains__(b) <==> b in a
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/util/arrays.py/Array.__contains__