def tokens(self):
        """ Return a list of (type, value) tokens. """
        if not self._tokens:
            self._tokens = list(self.tokenise(self.route))
        return self._tokens
def tokens ( self ) : if not self . _tokens : self . _tokens = list ( self . tokenise ( self . route ) ) return self . _tokens
Return a list of (type, value) tokens.