def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def anypats(self):
        """None of .always(), .isexact(), and .prefix() is true --
        optimizations will be difficult."""
        return not self.always() and not self.isexact() and not self.prefix()