def __eq__(self, other): if isinstance(other, str): return zframe.streq(self.frame, other) elif isinstance(other, Frame): return zframe.eq(self.frame, other.frame) return zframe.eq(self.frame, other)