[issue32820] Add bits method to ipaddress
Eric V. Smith
report at bugs.python.org
Sun Feb 11 18:21:47 EST 2018
Eric V. Smith <eric at trueblade.com> added the comment:
Without commenting on how useful or desirable this would be, I'll point out the string can be computed as:
return f'{int(self):#0{IPV4LENGTH+2}b}'
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32820>
_______________________________________
More information about the Python-bugs-list
mailing list