(self)
Generator yielding ungrouped tokens.

        This method is recursively called for all child tokens.
Generator yielding ungrouped tokens.
Generator yielding ungrouped tokens .
def flatten(self):
        """Generator yielding ungrouped tokens.

        This method is recursively called for all child tokens.
        """
        for token in self.tokens:
            if isinstance(token, TokenList):
                for item in token.flatten():
                    yield item
            else:
                yield token
def flatten ( self ) : for token in self . tokens : if isinstance ( token , TokenList ) : for item in token . flatten ( ) : yield item else : yield token