'Return slice from index1 to index2 (default is \'index1+1\').'

def get(self, index1, index2=None):

    (startline, startchar) = self._decode(index1)
    if (index2 is None):
        (endline, endchar) = (startline, (startchar + 1))
    else:
        (endline, endchar) = self._decode(index2)
    if (startline == endline):
        return self.data[startline][startchar:endchar]
    else:
        lines = [self.data[startline][startchar:]]
        for i in range((startline + 1), endline):
            lines.append(self.data[i])
        lines.append(self.data[endline][:endchar])
        return ''.join(lines)
