def get_rows(self, index, subindex=None):
        if isinstance(index, (int,long)):
            r = self.get_row (index, subindex=subindex)
            return r.reshape((1,)+r.shape)
        if isinstance (index, slice):
            indices = range (*index.indices(self.shape[0]))
            for i,j in enumerate(indices):
                s = self.get_row(j, subindex=subindex)
                if i==0:
                    r = numpy.empty((len (indices),)+s.shape, dtype=self.dtype)
                r[i] = s
            return r
        if isinstance (index, tuple):
            if len (index) < 1:
                return self[index[0]]
        raise NotImplementedError (`index`)
dataset/ETHPy150Open pearu/pylibtiff/libtiff/tiff_sample_plane.py/TiffSamplePlane.get_rows/operator `==` -> `<`