Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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 · 3 comments

2 participants

@mdomsch

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

@haypo
Collaborator

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

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
@haypo
Collaborator

Done: I released IPy 0.75.

@steffann steffann referenced this issue from a commit in steffann/python-ipy
Victor Stinner Issue #4: IP('::/0').netmask() gives IP('::') instead of IP('0.0.0.0') 4e79e3a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.