IP("::/0") gives a netmask of 0.0.0.0 rather then 0:0:0:0:0:0:0:0 #4

Closed
mdomsch opened this Issue Mar 24, 2011 · 3 comments

Comments

Projects
None yet
2 participants

mdomsch commented Mar 24, 2011

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

Collaborator

vstinner commented Mar 24, 2011

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.

mdomsch commented Mar 24, 2011

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.

@mdomsch mdomsch closed this Mar 24, 2011

Collaborator

vstinner commented Apr 12, 2011

Done: I released IPy 0.75.

steffann pushed a commit to steffann/python-ipy that referenced this issue Jan 12, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment