(self, fieldname, prefix)
Yields (text, terminfo) tuples for all terms in the given field with
        a certain prefix.
Yields (text, terminfo) tuples for all terms in the given field with
        a certain prefix.
Yields ( text terminfo ) tuples for all terms in the given field with a certain prefix .
def iter_prefix(self, fieldname, prefix):
        """Yields (text, terminfo) tuples for all terms in the given field with
        a certain prefix.
        """

        prefix = self._text_to_bytes(fieldname, prefix)
        for text, terminfo in self.iter_field(fieldname, prefix):
            if not text.startswith(prefix):
                return
            yield (text, terminfo)
def iter_prefix ( self , fieldname , prefix ) : prefix = self . _text_to_bytes ( fieldname , prefix ) for text , terminfo in self . iter_field ( fieldname , prefix ) : if not text . startswith ( prefix ) : return yield ( text , terminfo )