[Python-Dev] PEP 3144 review. (original) (raw)
Dj Gilcrease digitalxero at gmail.com
Mon Sep 28 18:24:30 CEST 2009
- Previous message: [Python-Dev] PEP 3144 review.
- Next message: [Python-Dev] PEP 3144 review.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ok updated patch so it meets the following conditions
IPv4Network(192.168.1.1/24) IPv4Network(192.168.1.0/24)
x = IPv4Network('192.168.1.1/24') y = IPv4Network('192.168.1.0/24') x == y True hash(x) == hash(y) True
The ip you instantiated the Network with is still accessible though, so
x.ip IPv4Address('192.168.1.1') y.ip IPv4Address('192.168.1.0')
I left it this way since there seems to be conflicting opinions on if this should exist in the Network object or not
http://codereview.appspot.com/124057
- Previous message: [Python-Dev] PEP 3144 review.
- Next message: [Python-Dev] PEP 3144 review.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]