Roger Luethi added the comment:
Seeing that the patch merged for issue 21513 left the existing test for
100.64.0.0 (IPv4 network) untouched, I think it would make more sense to make
that address a constant everywhere in a separate patch (if that is indeed
desirable
Roger Luethi added the comment:
New patch includes tests.
Lightly tested with Python 3.4 (because trunk doesn't build for me right now):
tests fail without patch, pass with patch.
Patch re-diffed against trunk.
--
Added file: http://bugs.python.org/file35281/ipv4addr_global2-hg
New submission from Roger Luethi:
Lib/ipaddress.py does not implement is_global for IPv4Address, in contrast to
the documentation which states for IPv4Address.is_global: "True if the address
is allocated for public networks."
A patch like the one attached to this report shoul