[Python-Dev] PEP 3144 review. (original) (raw)

Dj Gilcrease digitalxero at gmail.com
Mon Sep 28 18:24:30 CEST 2009


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



More information about the Python-Dev mailing list