def overlaps(self, other):
        """Tell if self is partly contained in other."""
        return self.network_address in other or (
            self.broadcast_address in other or (
                other.network_address in self or (
                    other.broadcast_address in self)))
dataset/ETHPy150Open saltstack/salt/salt/ext/ipaddress.py/_BaseNetwork.overlaps/original