Skip to content

Commit 3716311

Browse files
wbolstermiss-islington
authored andcommitted
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 0c89d36 commit 3716311

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

370370
.. attribute:: ipv4_mapped
371371

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

376376
.. attribute:: scope_id
377377

0 commit comments

Comments
 (0)