mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
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>
This commit is contained in:
parent
24b5cbd3dc
commit
ba8aa1fd37
5 changed files with 32 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue