def dist(a, b):
    return sum((i-j)**2 for i, j in zip(a, b))
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()