This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mryding
Recipients mryding
Date 2013-09-06.18:14:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378491245.37.0.748278475446.issue18947@psf.upfronthosting.co.za>
In-reply-to
Content
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')
History
Date User Action Args
2013-09-06 18:14:05mrydingsetrecipients: + mryding
2013-09-06 18:14:05mrydingsetmessageid: <1378491245.37.0.748278475446.issue18947@psf.upfronthosting.co.za>
2013-09-06 18:14:05mrydinglinkissue18947 messages
2013-09-06 18:14:05mrydingcreate