

def __ne__(self, other):
    'Implement self != other as not(self == other).'
    eq = self.__eq__(other)
    if (eq is NotImplemented):
        return NotImplemented
    return (not eq)

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py _NotEqualMixin.__ne__/original