Skip to content

Commit 16f8523

Browse files
s-sanjayzhangyangyu
authored andcommitted
bpo-29913: deprecate compare_networks() in documentation (pythonGH-865)
1 parent 84b8e92 commit 16f8523

2 files changed

Lines changed: 4 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

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,3 +1730,4 @@ Peter Åstrand
17301730
evilzero
17311731
Dhushyanth Ramasamy
17321732
Subhendu Ghosh
1733+
Sanjay Sundaresan

0 commit comments

Comments
 (0)