[New-bugs-announce] [issue18947] Bug in module netaddr

Mikael Ryding report at bugs.python.org
Fri Sep 6 20:14:05 CEST 2013


New submission from Mikael Ryding:

I found this in the netaddr module when I was trying to get the CIDR from a number of ip/netmask combinations. The expected cidr in the example below should be: 192.1.0.0/23.

>>> ip = netaddr.IPNetwork("192.1.1.128", "255.255.254.0")
>>> ip.netmask
IPAddress('255.255.255.0')
>>> ip.cidr
IPNetwork('192.1.1.0/24')

----------
messages: 197085
nosy: mryding
priority: normal
severity: normal
status: open
title: Bug in module netaddr
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18947>
_______________________________________


More information about the New-bugs-announce mailing list