diff -r 1733b3bd46db Lib/ipaddress.py --- a/Lib/ipaddress.py Fri Oct 16 22:47:29 2015 -0700 +++ b/Lib/ipaddress.py Sat Oct 17 14:56:25 2015 +0300 @@ -677,8 +677,7 @@ # dealing with another address else: # address - return (int(self.network_address) <= int(other._ip) <= - int(self.broadcast_address)) + return other._ip & self.netmask._ip == self.network_address._ip def overlaps(self, other): """Tell if self is partly contained in other."""