# 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
Dan, any chance 0.73 fixes it for you? http://pypi.python.org/pypi/IPy/
Nope, 0.74 doesn't. I'll report upstream. Thanks, Matt
https://github.com/haypo/python-ipy/issues/4
I added this hack to my program if newmask == "0.0.0.0" and i.version() == 6: newmask = "::"
Created attachment 487432 [details] 0001-Issue-4-IP-0-.netmask-gives-IP-instead-of-IP-0.0.0.0.patch Upstream patch to address bug. Upstream has offered to release a new version to address this.
Great. I will remove my hack when it gets into F15.
Koji build of 0.75 includes this fix. This is built for rawhide now. I can backport to F15 if necessary. Created task: 3150183 Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=3150183
python-IPy-0.75-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/python-IPy-0.75-1.fc15
python-IPy-0.75-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/python-IPy-0.75-1.el6
Package python-IPy-0.75-1.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing python-IPy-0.75-1.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/python-IPy-0.75-1.fc15 then log in and leave karma (feedback).
python-IPy-0.75-1.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/python-IPy-0.75-1.fc14
python-IPy-0.75-1.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.
python-IPy-0.75-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
python-IPy-0.75-1.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.