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 xiang.zhang
Recipients Sanjay, ncoghlan, pmoody, xiang.zhang
Date 2017-03-27.10:10:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490609416.23.0.757711339103.issue29913@psf.upfronthosting.co.za>
In-reply-to
Content
I still hold my opinion that the current behaviour is correct. You are comparing two networks and you should count the mask in. 

And notice that `neta == netb` is not totally equal to `neta.compare_networks(netb)`. The former can only results True or False but the later could result -1, 0 and 1. For example:

>>> IPv4Network('192.0.2.0/25') == IPv4Network('192.0.2.0/25')
True
>>> IPv4Network('192.0.2.0/25').compare_networks(IPv4Network('192.0.2.0/25'))
0
>>> 

They can't be used exchangably. `compare_networks` actually does the work of all <, >, ==.
History
Date User Action Args
2017-03-27 10:10:16xiang.zhangsetrecipients: + xiang.zhang, ncoghlan, pmoody, Sanjay
2017-03-27 10:10:16xiang.zhangsetmessageid: <1490609416.23.0.757711339103.issue29913@psf.upfronthosting.co.za>
2017-03-27 10:10:16xiang.zhanglinkissue29913 messages
2017-03-27 10:10:16xiang.zhangcreate