def append(self, other, axis=0):
        cls = self.__class__
        shape, ndim, size = _shapeInfo(self)
        other = copy.deepcopy(_toCompOrArrayInstance(other))
        oshape, odim, osize = _shapeInfo(other)

        # one axis from 0 to ndim-1
        axis = int(axis)
        if axis < 0 :
            axis += ndim
        if axis not in range(ndim) :
            raise ValueError, "cannot append on axis %s, axis does not exist for %s of shape %s" % (axis, util.clsname(self), shape)
        itself = self.axisiter(axis);
        itemshape = itself.itemshape
        itemdim = len(itemshape)
        if itemshape :
            other = Array(shape=itemshape).filled(other)
        else :
            other = Array(other)
        if size :
            if axis > 0 :
                staxis = range(axis, -1, -1)+range(axis+1, ndim)
                nself = self.transpose(staxis)
                otaxis = staxis[1:]
                for i, a in enumerate(otaxis) :
                    if a > axis :
                        otaxis[i] = a-1
                nother = other.transpose(otaxis)
                if nother.ndim == itemdim :
                    nother = Array([nother])
                new = Array(list(nself)+list(nother))
                new = new.transpose(staxis)
            else :
                if other.ndim == itemdim :
                    other = Array([other])
                new = Array(list(self)+list(other))
        elif odim == 0 :
            if other.ndim == itemdim :
                other = Array([other])
            new = other

        try :
            new = cls._convert(new)
        except :
            raise ValueError, "cannot append a %s of shape %s on axis %s of %s of shape %s" % (clsname(other), oshape, axis, clsname(self), shape)

        if type(new) is type(self) :
            self.assign(new)
        else :
            raise ValueError, "new appended shape %s is not compatible with class %s" % (shape, clsname(self))
a.append(b[, axis=0])
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/util/arrays.py/Array.append