def __ne__(self, other):
    if (not isinstance(other, Rdata)):
        return True
    if ((self.rdclass != other.rdclass) or (self.rdtype != other.rdtype)):
        return True
    return (self._cmp(other) != 0)
def __ne__(self, other):
    if (not isinstance(other, Rdata)):
        return True
    if ((self.rdclass != other.rdclass) or (self.rdtype != other.rdtype)):
        return True
    return (self._cmp(other) != 0)