]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] 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:59 +0000 (15:45 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Jun 2025 13:45:59 +0000 (15:45 +0200)
commit65f2e240401a5a4f4bd05b8b517a9f74c0f11cd8
treee4a052648038354555f3e7fb3e72649290d2e249
parent00af9794dd118f7b835dd844b2b609a503ad951e
[3.9] gh-87799: Improve the textual representation of IPv4-mapped IPv6 addresses (GH-29345) (GH-135078)

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]