(self)
Returns an iterator of all the leaf queries in this query tree as a
        flat series.
Returns an iterator of all the leaf queries in this query tree as a
        flat series.
Returns an iterator of all the leaf queries in this query tree as a flat series .
def leaves(self):
        """Returns an iterator of all the leaf queries in this query tree as a
        flat series.
        """

        if self.is_leaf():
            yield self
        else:
            for q in self.children():
                for qq in q.leaves():
                    yield qq
def leaves ( self ) : if self . is_leaf ( ) : yield self else : for q in self . children ( ) : for qq in q . leaves ( ) : yield qq