[issue20857] ipaddress is_private and is_global are insufficiently documented and is_global probably has a bug

2014-03-06 Thread R. David Murray
New submission from R. David Murray: The 'is_private' and 'is_global' properties refer to the iana registries, but the terms 'private network' and 'public network' do no appear in the registry documentation. There is no way to know what these methods are going to return other than examining

[issue20857] ipaddress is_private and is_global are insufficiently documented and is_global probably has a bug

2014-03-06 Thread R. David Murray
R. David Murray added the comment: Oh, and just to make things more complicated, there are footnotes that some protocols allow global routing for protocol-allocated addresses that are otherwise not globally routable. It would be reasonable to for is_global to ignore this, but it should be

[issue20857] ipaddress is_private and is_global are insufficiently documented and is_global probably has a bug

2014-03-06 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'm always in favour of using official terminology (and adjust if that changes over time). So in this case, I agree with David's analysis, and suggest the following specification: - is_global returns False for all addresses where Global is False in the IPv4