Ok updated patch so it meets the following conditions >>> IPv4Network(192.168.1.1/24) IPv4Network(192.168.1.0/24) >>> x = IPv4Network('192.168.1.1/24') >>> y = IPv4Network('192.168.1.0/24') >>> x == y True >>> hash(x) == hash(y) True The ip you instantiated the Network with is still accessible though, so >>> x.ip IPv4Address('192.168.1.1') >>> y.ip IPv4Address('192.168.1.0') I left it this way since there seems to be conflicting opinions on if this should exist in the Network object or not http://codereview.appspot.com/124057
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4