Message212812
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 the source code.
In particular, without looking at the source code a best-guess interpretation of the documentation would lead one to expect that is_private would return true only for RFC1918 addresses, since that is the one place the term 'private' appears. Similarly, the naive interpretation of is_global would be that it would return False for all addresses listed in the ipv4 registry *except* 192.88.99.0/24, which is the only one whose global routing flag is True in the table.
I would submit that the fact that the latter is not true is a bug.
It is really not at all clear what 'is_private' means (see also issue 17400, which introduced is_global), so I am completely unclear how to rewrite the documentation to fully specify it, other than to list out the address ranges that it considers private. |
|
Date |
User |
Action |
Args |
2014-03-06 16:20:35 | r.david.murray | set | recipients:
+ r.david.murray, ncoghlan, pmoody |
2014-03-06 16:20:35 | r.david.murray | set | messageid: <1394122835.87.0.0307404764075.issue20857@psf.upfronthosting.co.za> |
2014-03-06 16:20:35 | r.david.murray | link | issue20857 messages |
2014-03-06 16:20:35 | r.david.murray | create | |
|