[issue28577] ipaddress.ip_network(...).hosts() returns nothing for an IPv4 /32

Xiang Zhang report at bugs.python.org
Tue Nov 1 05:03:15 EDT 2016


Xiang Zhang added the comment:

I am not sure. Actually there is a special case for mask 31, you can see #27863. Its result includes both the network and broadcast address. Add Nick to see his opinion.

FYI, ipaddress (ipaddr in Py2) always return empty for 32. But there is other library returning network address for 32, for example netaddr.

----------
nosy: +ncoghlan
status: closed -> open
type:  -> behavior
versions: +Python 3.7 -Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28577>
_______________________________________


More information about the Python-bugs-list mailing list