

def __eq__(self, other):
    if isinstance(other, Topic):
        return ((self._name == other._name) and (self._parent == other._parent))
    return NotImplemented

dataset/ETHPy150Open foxdog-studios/pyddp/ddp/pubsub/topic.py Topic.__eq__/original