def __eq__(self, other):
        try:
            return (self._version == other._version
                    and self.network == other.network
                    and int(self.netmask) == int(other.netmask))
        except __HOLE__:
            if isinstance(other, _BaseIP):
                return (self._version == other._version
                        and self._ip == other._ip)
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/lib/ipaddr.py/_BaseNet.__eq__