[Python-Dev] PEP 3144 review. (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Sat Sep 26 19:44:45 CEST 2009
- Previous message: [Python-Dev] PEP 3144 review.
- Next message: [Python-Dev] PEP 3144 review.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
- Masks are also 32- (128-) bit integers, which happen to have the property that their leftmost N bits are all zero and the rest are all one.
As a side note, I would be in favor of dropping the concept of a mask from the library, and only support a prefix length.
IPv6 doesn't support masks at all, and even for IPv4, I think there are conventions (if not RFCs) against using them in a way that does not correspond to a prefix length.
Regards, Martin
- Previous message: [Python-Dev] PEP 3144 review.
- Next message: [Python-Dev] PEP 3144 review.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]