Eric Osborne <e...@notcom.com> added the comment:
IPv6 is nasty no matter how you do it (cf.
https://tools.ietf.org/html/rfc1924). And the ipaddr library already has
Binary's not about direct readabilty, but about ease of comparison. It's
much easier to show the reader
and have them figure out whether the mask contains both hosts than to show
and ask them to convert to binary in their heads. Without the zero padding
on the left, this is very easy to get wrong.
But I certainly agree that this is somewhat niche and a convenience
function, and if the consensus is that this is too narrow for stdlib, so be
On Mon, Feb 12, 2018 at 8:46 AM Serhiy Storchaka <rep...@bugs.python.org>
> Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
> I wouldn't say that
> is a very human readable. For more readability it is better to group digits
> by 4 or 8, and why not use hexadecimal then?
> In any case the application of this feature looks pretty narrow to me. And
> since it can be implemented as a one-line function, I think it shouldn't be
> added in the stdlib. The ipaddress classes are already complex.
> Python tracker <rep...@bugs.python.org>
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list