Eric V. Smith <e...@trueblade.com> added the comment:
Simplified: >>> import ipaddress >>> print(ipaddress.ip_address('172.16.254.00').version) 4 So your concern is that you think '172.16.254.00' (or equivalently, '172.16.254.0') shouldn't be treated as a valid IPv4 address. Is that correct? Can you tell us why you think it's not a valid IPv4 address? I think everything is working correctly here. ---------- nosy: +eric.smith _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41820> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com