]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.10] 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:49:38 +0000 (15:49 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Jun 2025 13:49:38 +0000 (15:49 +0200)
commit24bd1834ca5b27e6efd5a4b271eaa58bb40f7dcf
tree59bf5ff7144cbd1e99f1b6ea55514054d58e3e73
parente0cb9afea4af59b65ce4954f8062473c0c8d6f90
[3.10] gh-87799: Improve the textual representation of IPv4-mapped IPv6 addresses (GH-29345) (GH-135079)

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]