This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Lord Anton Hvornum, serhiy.storchaka
Date 2017-09-26.20:08:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1506456498.64.0.394147662359.issue31597@psf.upfronthosting.co.za>
In-reply-to
Content
This is documented.

 hosts()

    Returns an iterator over the usable hosts in the network. The usable hosts are all the IP addresses that belong to the network, except the network address itself and the network broadcast address.

>>> import ipaddress
>>> ipaddress.ip_network('127.0.0.1/32').network_address
IPv4Address('127.0.0.1')
>>> ipaddress.ip_network('127.0.0.1/32').broadcast_address
IPv4Address('127.0.0.1')
History
Date User Action Args
2017-09-26 20:08:18serhiy.storchakasetrecipients: + serhiy.storchaka, Lord Anton Hvornum
2017-09-26 20:08:18serhiy.storchakasetmessageid: <1506456498.64.0.394147662359.issue31597@psf.upfronthosting.co.za>
2017-09-26 20:08:18serhiy.storchakalinkissue31597 messages
2017-09-26 20:08:18serhiy.storchakacreate