def __eq__(self, other):
return self.event_type == other.event_type andlen(self.event_properties) == len(other.event_properties) andall((x == y) for (x, y) inzip(self.event_properties, other.event_properties)) andself.event_properties == other.event_properties andlen(self.filters) == len(other.filters) andall((x == y) for (x, y) in zip(self.filters, other.filters))<EOL>
>>> e1 = EventExpression('request')
>>> e2 = EventExpression('request')
>>> e1 == e2
True
>>> e1 = EventExpression('request', 'path')
>>> e1 == e2
False