Skip to content

Commit 7aedd0a

Browse files
authored
gh-87245: Improve IPv6Address.ipv4_mapped documentation (#92572)
Avoid the phrasing ‘starting with ::FFFF/96’, which is confusing since it seems to mix a prefix and a range. Instead, make it clear what the actual range is, and refer to the relevant RFC. Closes #87245.
1 parent 2ba0a81 commit 7aedd0a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/ipaddress.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,9 @@ write code that handles both IP versions correctly. Address objects are
367367

368368
.. attribute:: ipv4_mapped
369369

370-
For addresses that appear to be IPv4 mapped addresses (starting with
371-
``::FFFF/96``), this property will report the embedded IPv4 address.
372-
For any other address, this property will be ``None``.
370+
For addresses that appear to be IPv4 mapped addresses in the range
371+
``::FFFF:0:0/96`` as defined by :RFC:`4291`, this property reports the
372+
embedded IPv4 address. For any other address, this property will be ``None``.
373373

374374
.. attribute:: scope_id
375375

0 commit comments

Comments
 (0)