]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-87799: Improve the textual representation of IPv4-mapped IPv6 addresses (#29345)
authoropavliuk <40970635+opavlyuk@users.noreply.github.com>
Mon, 31 Jul 2023 14:33:26 +0000 (16:33 +0200)
committerGitHub <noreply@github.com>
Mon, 31 Jul 2023 14:33:26 +0000 (14:33 +0000)
commitf22bf8e3cf899896cf587099d29290cb43aa9724
tree59a8de0bcb07417bbe27a10d5613eac14d734c55
parent520efecfc3aed34d3a44545c7cd872d1aea8c7dc
gh-87799: Improve the textual representation of IPv4-mapped IPv6 addresses (#29345)

Represent IPv4-mapped IPv6 address as x:x:x:x:x:x:d.d.d.d,
where the 'x's are the hexadecimal values
of the six high-order 16-bit pieces of the address,
and the 'd's are the decimal values
of the four low-order 8-bit pieces of the address
(standard IPv4 representation).

---------

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
Lib/ipaddress.py
Lib/test/test_ipaddress.py
Misc/NEWS.d/next/Library/2021-10-31-16-06-28.bpo-43633.vflwXv.rst [new file with mode: 0644]