Skip to content

Commit 0caa433

Browse files
author
David Groves
committed
Readded docs on deprecated network_address/broadcast_address for IPv6Networks
1 parent 8a468af commit 0caa433

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

Doc/library/ipaddress.rst

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ dictionaries.
552552

553553
The first address in the network, the one with all the host bits cleared.
554554
This is the same as :attr:`network_address` for IPv4 networks.
555-
555+
556556
.. versionadded:: next
557557

558558
.. attribute:: network_address
@@ -564,7 +564,7 @@ dictionaries.
564564

565565
The last address in the network, the address with all the host bits set.
566566
This is the same as :attr:`broadcast_address` for IPv4 networks.
567-
567+
568568
.. versionadded:: next
569569

570570
.. attribute:: broadcast_address
@@ -774,21 +774,21 @@ dictionaries.
774774

775775
The first address in the network, the one with all the host bits cleared.
776776
This is the same as :attr:`subnet_router_anycast_address` for IPv6 networks.
777-
777+
778778
.. versionadded:: next
779779

780780
.. attribute:: subnet_router_anycast_address
781781

782782
The Subnet-Router anycast address for the network, which is the first address
783783
in the network.
784-
784+
785785
.. versionadded:: next
786786

787787
.. attribute:: last_address
788788

789789
The last address in the network, the one with all the host bits set.
790790
This has no special meaning for IPv6 networks.
791-
791+
792792
.. versionadded:: next
793793

794794
.. attribute:: hostmask
@@ -800,6 +800,22 @@ dictionaries.
800800
.. attribute:: with_hostmask
801801
.. attribute:: num_addresses
802802
.. attribute:: prefixlen
803+
.. attribute:: network_address
804+
805+
The first address in the network. The name "network address" has meaning for IPv4 networks,
806+
but not for IPv6, hence this use is deprecated.
807+
808+
.. deprecated:: next
809+
Use :attr:`first_address` or :attr:`subnet_router_anycast_address` instead.
810+
811+
.. attribute:: broadcast_address
812+
813+
The last address in the network. The name "broadcast address" has meaning for IPv4 networks,
814+
but not for IPv6, hence this use is deprecated.
815+
816+
.. deprecated:: next
817+
Use :attr:`last_address` instead.
818+
803819
.. method:: hosts()
804820

805821
Returns an iterator over the usable hosts in the network. The usable

0 commit comments

Comments
 (0)