Author pitrou
Recipients ncoghlan, pitrou, pmoody
Date 2012-11-22.21:59:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1353621566.3.0.0992835206333.issue16531@psf.upfronthosting.co.za>
In-reply-to
Content
I am in a situation where I'm building an IPNetwork from separate address and mask information. So roughly I'd like to write either:

 addr = IPAddress('192.168.0.0')
 network = IPNetwork((addr, '255.255.0.0'))

or

 addr = '192.168.0.0'
 network = IPNetwork((addr, '255.255.0.0'))

Of course it seems like this would be equivalent to:

 network = IPNetwork('%s/%s' % (addr, '255.255.0.0.'))

(but more user-friendly :-))
History
Date User Action Args
2012-11-22 21:59:26pitrousetrecipients: + pitrou, ncoghlan, pmoody
2012-11-22 21:59:26pitrousetmessageid: <1353621566.3.0.0992835206333.issue16531@psf.upfronthosting.co.za>
2012-11-22 21:59:26pitroulinkissue16531 messages
2012-11-22 21:59:25pitroucreate