]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-87799: Improve the textual representation of IPv4-mapped IPv6 addresses...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 3 Jun 2025 13:45:32 +0000 (15:45 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Jun 2025 13:45:32 +0000 (15:45 +0200)
commitf3272d863004e291ab00620e71dee1cfa0fc9f83
tree313a3f066b8c97107fddfbd7422e8decc3fa6787
parentd4cf1fafafc673e6147ff9d28f66ac1b50637605
[3.12] gh-87799: Improve the textual representation of IPv4-mapped IPv6 addresses (GH-29345) (GH-135081)

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).

(cherry picked from commit f22bf8e3cf899896cf587099d29290cb43aa9724)

Co-authored-by: opavliuk <40970635+opavlyuk@users.noreply.github.com>
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]