def ismatch(self, s):
        """ like compiled_re.match() but returns True or False """
        if self._ismatchfun(s) and self._compiled_pattern.match(s):
            return True
        return False
def ismatch ( self , s ) : if self . _ismatchfun ( s ) and self . _compiled_pattern . match ( s ) : return True return False
like compiled_re.match() but returns True or False