diff options
author | Charles Machalow <csm10495@gmail.com> | 2023-11-05 16:50:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-05 16:50:31 (GMT) |
commit | ba8aa1fd3735aa3dd13a36ad8f059a422d25ff37 (patch) | |
tree | 37338f169a6502ed9ccb371c07d7e4a23e58aaa6 /Doc | |
parent | 24b5cbd3dce3fe37cdc787ccedd1e73a4f8cfc3c (diff) | |
download | cpython-ba8aa1fd3735aa3dd13a36ad8f059a422d25ff37.zip cpython-ba8aa1fd3735aa3dd13a36ad8f059a422d25ff37.tar.gz cpython-ba8aa1fd3735aa3dd13a36ad8f059a422d25ff37.tar.bz2 |
gh-109466: Add ipv6_mapped property to IPv4Address (#109467)
Adds the `IPv4Address.ipv6_mapped` property.
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/ipaddress.rst | 7 | ||||
-rw-r--r-- | Doc/whatsnew/3.13.rst | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/Doc/library/ipaddress.rst b/Doc/library/ipaddress.rst index 9c2dff5..1de36b6 100644 --- a/Doc/library/ipaddress.rst +++ b/Doc/library/ipaddress.rst @@ -219,6 +219,13 @@ write code that handles both IP versions correctly. Address objects are ``True`` if the address is reserved for link-local usage. See :RFC:`3927`. + .. attribute:: ipv6_mapped + + :class:`IPv4Address` object representing the IPv4-mapped IPv6 address. See :RFC:`4291`. + + .. versionadded:: 3.13 + + .. _iana-ipv4-special-registry: https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml .. _iana-ipv6-special-registry: https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index f2c1441..e12c2a1 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -185,6 +185,12 @@ and only logged in :ref:`Python Development Mode <devmode>` or on :ref:`Python built on debug mode <debug-build>`. (Contributed by Victor Stinner in :gh:`62948`.) +ipaddress +--------- + +* Add the :attr:`ipaddress.IPv4Address.ipv6_mapped` property, which returns the IPv4-mapped IPv6 address. + (Contributed by Charles Machalow in :gh:`109466`.) + opcode ------ |