(self, fieldname, prefix)
Yields terms in the given field that start with the given prefix.
Yields terms in the given field that start with the given prefix.
Yields terms in the given field that start with the given prefix .
def expand_prefix(self, fieldname, prefix):
        """Yields terms in the given field that start with the given prefix.
        """

        for fn, text in self.terms_from(fieldname, prefix):
            if fn != fieldname or not text.startswith(prefix):
                return
            yield text
def expand_prefix ( self , fieldname , prefix ) : for fn , text in self . terms_from ( fieldname , prefix ) : if fn != fieldname or not text . startswith ( prefix ) : return yield text