]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-28577: Special case added to IP v4 and v6 hosts for /32 and /128 networks...
authorPete Wicken <2273100+JamoBox@users.noreply.github.com>
Mon, 26 Apr 2021 19:57:04 +0000 (20:57 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Apr 2021 19:57:04 +0000 (21:57 +0200)
commit10ad7eb2ef61a2ba99341c804c8c960e4f284621
tree51979bebdf1d0cc36809b675ff390c9a9504e498
parent196b8f300479d4e4050d9af9ba4ed82ee1e81dc8
[3.8] bpo-28577: Special case added to IP v4 and v6 hosts for /32 and /128 networks (GH-18757) (#25536)

The `.hosts()` method now returns the single address present in a /32 or /128 network..
(cherry picked from commit 8e9c47a947954c997d4b725f4551d50a1d896722)

Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
Doc/library/ipaddress.rst
Lib/ipaddress.py
Lib/test/test_ipaddress.py
Misc/ACKS
Misc/NEWS.d/next/Library/2020-03-02-23-52-38.bpo-28577.EK91ae.rst [new file with mode: 0644]