def __eq__(self, other):
        try:
            return (self._version == other._version
                    and self.network_address == other.network_address
                    and int(self.netmask) == int(other.netmask))
        except __HOLE__:
            if isinstance(other, _BaseAddress):
                return (self._version == other._version
                        and self._ip == other._ip)
dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/contrib/ipaddr.py/_BaseInterface.__eq__