R. David Murray <rdmur...@bitdance.com> added the comment: > >>> 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. ---------- nosy: +r.david.murray _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue3959> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com