IP("::/0") gives a netmask of 0.0.0.0 rather then 0:0:0:0:0:0:0:0
mdomsch opened this issue · comments
https://bugzilla.redhat.com/show_bug.cgi?id=690625
Reported by: Daniel Walsh 2011-03-24 16:23:48 EDT
python
Python 2.7.1 (r271:86832, Feb 9 2011, 17:56:14)
[GCC 4.6.0 20110205 (Red Hat 4.6.0-0.6)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
from IPy import IP
x=IP("::/0")
print x.netmask()
0.0.0.0
rpm -q python-IPy
python-IPy-0.70-3.fc15.noarch
Reproduced with 0.74, git f6d35f3
Oh yes, it is a bug. It should be fixed by 4e79e3a: can you try with this version please? I can do a minor release if you would like to.
Indeed, that fixes the problem. The reporter has worked around the bug in his own software, but a release would be welcome. Right now Fedora is at 0.70, and python 2.7.
Done: I released IPy 0.75.