MCPcopy Index your code
hub / github.com/python/cpython / ipv6_mapped

Method ipv6_mapped

Lib/ipaddress.py:1403–1410  ·  view source on GitHub ↗

Return the IPv4-mapped IPv6 address. Returns: The IPv4-mapped IPv6 address per RFC 4291.

(self)

Source from the content-addressed store, hash-verified

1401
1402 @property
1403 def ipv6_mapped(self):
1404 """Return the IPv4-mapped IPv6 address.
1405
1406 Returns:
1407 The IPv4-mapped IPv6 address per RFC 4291.
1408
1409 """
1410 return IPv6Address(f'::ffff:{self}')
1411
1412
1413class IPv4Interface(IPv4Address):

Callers

nothing calls this directly

Calls 1

IPv6AddressClass · 0.85

Tested by

no test coverage detected