(self, start, end, exclude_end=False)
return self.tokens[start_idx:end_idx]
Return all tokens between (and including) start and end.

        If *exclude_end* is ``True`` (default is ``False``) the end token
        is included too.
Return all tokens between (and including) start and end.
Return all tokens between ( and including ) start and end .
def tokens_between(self, start, end, exclude_end=False):
        """Return all tokens between (and including) start and end.

        If *exclude_end* is ``True`` (default is ``False``) the end token
        is included too.
        """
        # FIXME(andi): rename exclude_end to inlcude_end
        if exclude_end:
            offset = 0
        else:
            offset = 1
        end_idx = self.token_index(end) + offset
        start_idx = self.token_index(start)
        return self.tokens[start_idx:end_idx]
def tokens_between ( self , start , end , exclude_end = False ) : # FIXME(andi): rename exclude_end to inlcude_end if exclude_end : offset = 0 else : offset = 1 end_idx = self . token_index ( end ) + offset start_idx = self . token_index ( start ) return self . tokens [ start_idx : end_idx ]