(self, i=None, j=None)
return new_tokens
Return a view of the list of tokens from [i, j).
Return a view of the list of tokens from [i, j).
Return a view of the list of tokens from [ i j ) .
def slice(self, i=None, j=None):
        """Return a view of the list of tokens from [i, j)."""
        new_tokens = copy.copy(self)
        new_tokens.data = self.data[i: j]
        return new_tokens
def slice ( self , i = None , j = None ) : new_tokens = copy . copy ( self ) new_tokens . data = self . data [ i : j ] return new_tokens