(self)
Returns an iterator of term matchers in this tree.
Returns an iterator of term matchers in this tree.
Returns an iterator of term matchers in this tree .
def term_matchers(self):
        """Returns an iterator of term matchers in this tree.
        """

        if self.term() is not None:
            yield self
        else:
            for cm in self.children():
                for m in cm.term_matchers():
                    yield m
def term_matchers ( self ) : if self . term ( ) is not None : yield self else : for cm in self . children ( ) : for m in cm . term_matchers ( ) : yield m