Skip to content
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions Doc/library/ipaddress.rst
Original file line number Diff line number Diff line change
Expand Up @@ -548,14 +548,24 @@ dictionaries.
These attributes are true for the network as a whole if they are true
for both the network address and the broadcast address.

.. attribute:: first_address

The first address in the network, the one with all the host bits cleared.
This is the same as the network_address for IPv4 networks.

.. attribute:: network_address

The network address for the network. The network address and the
prefix length together uniquely define a network.

.. attribute:: last_address

The last address in the network, the address with all the host bits set.
This is the same as the broadcast_address for IPv4 networks.

.. attribute:: broadcast_address

The broadcast address for the network. Packets sent to the broadcast
The same as :attr:`last_address` for IPv4 networks. Packets sent to this
address should be received by every host on the network.

.. attribute:: hostmask
Expand Down Expand Up @@ -756,8 +766,21 @@ dictionaries.
.. attribute:: is_reserved
.. attribute:: is_loopback
.. attribute:: is_link_local
.. attribute:: network_address
.. attribute:: broadcast_address
Comment on lines -759 to -760
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These shouldn't be removed quite yet - they'd need be documented during a deprecation period.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Readded

.. attribute:: first_address

The first address in the network, the one with all the host bits cleared.
This is the same as the subnet_router_anycast_address for IPv6 networks.

.. attribute:: subnet_router_anycast_address

The Subnet-Router anycast address for the network, which is the first address
in the network.

.. attribute:: last_address

The last address in the network, the one with all the host bits set.
This has no special meaning for IPv6 networks.

.. attribute:: hostmask
.. attribute:: netmask
.. attribute:: with_prefixlen
Expand Down
Loading
Loading