- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
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:18 | serhiy.storchaka | set | recipients: + serhiy.storchaka, Lord Anton Hvornum |
| 2017-09-26 20:08:18 | serhiy.storchaka | set | messageid: <1506456498.64.0.394147662359.issue31597@psf.upfronthosting.co.za> |
| 2017-09-26 20:08:18 | serhiy.storchaka | link | issue31597 messages |
| 2017-09-26 20:08:18 | serhiy.storchaka | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
