[Python-Dev] PEP 3144 review.
solipsis at pitrou.net
Mon Sep 28 22:32:45 CEST 2009
Le lundi 28 septembre 2009 à 22:11 +0200, "Martin v. Löwis" a écrit :
> That's not the question that was asked, though - the question asked
> was "Under what circumstances would I want to specify...". I hope
> most people agree that it is desirable to be able to specify a network
> not just by its network address.
To me it makes no sense to "specify a network not just by its network
address", because by definition a prefix + mask is all that
characterizes a network: that's all you need to specify it entirely.
Adding a "base address" would be like adding a "port number" attribute
to the Address class: it's abusing an existing class by adding
I may be mistaken, but it seems to me that, in the IP world, nowhere
does such a "network + host" hybrid appear. You find networks (prefix +
mask) in routing protocols, and host addresses in applicative protocols.
More information about the Python-Dev