Peter Moody wrote:
it's useful to take an address like 192.168.1.100/24 and derive a bunch of information from it (like the network address, broadcast address, containing supernets, etc), but still remember that the original address was 192.168.1.100. having a separate class or two for this is overly burdensome in my mind.
Seems to me what you want isn't so much an IPNetwork that can optionally have an address, as an IPAddress that can optionally have a mask, and methods for deriving those other things from it. -- Greg _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com