This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients ncoghlan, pmoody, r.david.murray
Date 2014-03-06.16:20:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1394122835.87.0.0307404764075.issue20857@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-03-06 16:20:35r.david.murraysetrecipients: + r.david.murray, ncoghlan, pmoody
2014-03-06 16:20:35r.david.murraysetmessageid: <1394122835.87.0.0307404764075.issue20857@psf.upfronthosting.co.za>
2014-03-06 16:20:35r.david.murraylinkissue20857 messages
2014-03-06 16:20:35r.david.murraycreate