Message312005
redoing with a bits() property method to return a string, a la:
def bits(self):
fstr = '0' + str(IPV4LENGTH) + 'b'
return '0b' + format(int(self), fstr)
Works thusly:
import ipaddress as ip
a = ip.IPv4Address('0.0.0.42')
a.bits == '0b00000000000000000000000000101010' |
|
Date |
User |
Action |
Args |
2018-02-11 17:26:06 | ewosborne | set | recipients:
+ ewosborne |
2018-02-11 17:26:06 | ewosborne | set | messageid: <1518369966.66.0.467229070634.issue32820@psf.upfronthosting.co.za> |
2018-02-11 17:26:06 | ewosborne | link | issue32820 messages |
2018-02-11 17:26:06 | ewosborne | create | |
|