[issue38655] ipaddress.ip_network('0.0.0.0/0').is_private == True

pascalhofmann report at bugs.python.org
Tue Nov 5 02:11:42 EST 2019


pascalhofmann <mail at pascalhofmann.de> added the comment:

0.0.0.0/0 is a network with addresses from 0.0.0.0 to 255.255.255.255.
0.0.0.0/8 is a network with addresses from 0.0.0.0 to 0.255.255.255.

So 4278190080 out of 4294967296 addresses in 0.0.0.0/0 clearly are no private addresses.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38655>
_______________________________________


More information about the Python-bugs-list mailing list