]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] 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:43:36 +0000 (15:43 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Jun 2025 13:43:36 +0000 (15:43 +0200)
commitf38f9cf7f81be1ccf0bedfec122b416090ce80cc
tree4d3b08ef4c209c7c4de6d4582f0cb737ff34cb7b
parentf8b4421bc5569df25259895a58b69b4d87a47d20
[3.11] gh-87799: Improve the textual representation of IPv4-mapped IPv6 addresses (GH-29345) (GH-135080)

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: 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]