Вячеслав added the comment:

These addresses are used by each interface in the network and they can not be 
the address of the interface, of course have the technology ip-unnumbered. But 
it's more a special case.

but I was confused behavior:

>>> set(ip_network(u'192.168.1.0/29'))
set([IPv4Address(u'192.168.1.5'), IPv4Address(u'192.168.1.6'), 
IPv4Address(u'192.168.1.7'), IPv4Address(u'192.168.1.2'), 
IPv4Address(u'192.168.1.3'), IPv4Address(u'192.168.1.4'), 
IPv4Address(u'192.168.1.0'), IPv4Address(u'192.168.1.1')])


>>> for i in ip_network(u'192.168.1.0/29').hosts():
...     print i
...
192.168.1.1
192.168.1.2
192.168.1.3
192.168.1.4
192.168.1.5
192.168.1.6

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22876>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to