Skip to content

Commit 76e2501

Browse files
[3.13] gh-87245: Improve IPv6Address.ipv4_mapped documentation (GH-92572) (#149361)
gh-87245: Improve IPv6Address.ipv4_mapped documentation (GH-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 GH-87245. (cherry picked from commit 7aedd0a) Co-authored-by: wouter bolsterlee <wouter@bolsterl.ee>
1 parent 7f9236c commit 76e2501

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
@@ -361,9 +361,9 @@ write code that handles both IP versions correctly. Address objects are
361361

362362
.. attribute:: ipv4_mapped
363363

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

368368
.. attribute:: scope_id
369369

0 commit comments

Comments
 (0)