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 <rep...@bugs.python.org>
<http://bugs.python.org/issue18947>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to