Message234267
Here is a patch which fixes following errors in comparison of ipaddress classes.
1. Ordering comparison raised AttributeError when compared with foreign classes.
2. Ordering comparison didn't return NotImplemented when compared with foreign classes. This prevented fallback to foreign class comparison method.
3. There was a bug in _TotalOrderingMixin.__le__(). It could return False instead of NotImplemented if compared network and address of different versions.
4. There was a typo in ComparisonTests.test_incompatible_versions().
As far as functools.total_ordering now is fixed and more correct and tested than _TotalOrderingMixin, _TotalOrderingMixin is dropped away. |
|
Date |
User |
Action |
Args |
2015-01-18 20:02:38 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ncoghlan, pmoody |
2015-01-18 20:02:38 | serhiy.storchaka | set | messageid: <1421611358.75.0.717594852846.issue23268@psf.upfronthosting.co.za> |
2015-01-18 20:02:38 | serhiy.storchaka | link | issue23268 messages |
2015-01-18 20:02:38 | serhiy.storchaka | create | |
|