def __getitem__(self, i):
        if not isinstance(i, slice):
            how_many = i - self.lines_read + 1
        elif i.stop is not None:
            how_many = i.stop - self.lines_read
        else:
            how_many = None

        self.buffer._read_further(how_many=how_many)
        return self._lines[i]
dataset/ETHPy150Open Julian/PyVi/pyvi/window.py/_Linewise.__getitem__/original