> >>> ipaddr.IPv4('192.168.1.1') == ipaddr.IPv4('192.168.1.1/32')
> True
As a network engineer I don't see any inherent problem with that equality.
In fact I make use of that conceptual equality on a regular basis.
Further, if you were to add a specifically 'address-without-netmask'
type, the above equality would still be true, because then the above
would be comparing two addresses-with-netmasks and you would want to
apply the hostmask to a bare address for convenience. To get inequality,
you'd be comparing two different object types...which comparison would
be False by default. |