[issue30407] ipaddress ver. 1.0.14 IPv4Network off by 1

2017-05-23 Thread Xiang Zhang
Xiang Zhang added the comment: "192.168.0.0" is the network address of "192.168.0.0/23" while "192.168.1.0" not. :-) -- ___ Python tracker ___

[issue30407] ipaddress ver. 1.0.14 IPv4Network off by 1

2017-05-23 Thread kelly hirai
kelly hirai added the comment: i thought it was inconsistent that 192.168.1.0 was included, but 192.168.0.0 was not. -- ___ Python tracker ___

[issue30407] ipaddress ver. 1.0.14 IPv4Network off by 1

2017-05-19 Thread Xiang Zhang
Xiang Zhang added the comment: See the doc: https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv4Network.hosts. For hosts() method, network address and broadcast address are excluded from the result. So it's right IPv4Address('192.168.0.0') and IPv4Address('192.168.1.255') are not

[issue30407] ipaddress ver. 1.0.14 IPv4Network off by 1

2017-05-19 Thread kelly hirai
kelly hirai added the comment: tested with 1.0.18 with same results. -- ___ Python tracker ___ ___

[issue30407] ipaddress ver. 1.0.14 IPv4Network off by 1

2017-05-19 Thread kelly hirai
New submission from kelly hirai: for x in ipaddress.IPv4Network(u"192.168.0.0/23").hosts(): print x contains 192.168.1.0 but does not contain 192.168.1.255 ipaddress version 1.0.14 -- messages: 293978 nosy: kghongaku priority: normal severity: normal status: open title: ipaddress