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
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
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