Skip to content

Commit 159a4ae

Browse files
sanjaysanjay
authored andcommitted
update documentation to deprecate compare_networks from 3.7
1 parent 1e73dbb commit 159a4ae

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Doc/library/ipaddress.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,9 @@ so to avoid duplication they are only documented for :class:`IPv4Network`.
554554
>>> ip_network('192.0.2.1/32').compare_networks(ip_network('192.0.2.1/32'))
555555
0
556556

557+
.. deprecated:: 3.7
558+
It uses the same ordering and comparison algorithm as "<", "==", and ">"
559+
557560

558561
.. class:: IPv6Network(address, strict=True)
559562

0 commit comments

Comments
 (0)