mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Issue #23326: Removed __ne__ implementations. Since fixing default __ne__
implementation in issue #21408 they are redundant.
This commit is contained in:
parent
57f7db3122
commit
08448a1f4d
20 changed files with 3 additions and 104 deletions
|
|
@ -923,15 +923,6 @@ class Decimal(object):
|
|||
return False
|
||||
return self._cmp(other) == 0
|
||||
|
||||
def __ne__(self, other, context=None):
|
||||
self, other = _convert_for_comparison(self, other, equality_op=True)
|
||||
if other is NotImplemented:
|
||||
return other
|
||||
if self._check_nans(other, context):
|
||||
return True
|
||||
return self._cmp(other) != 0
|
||||
|
||||
|
||||
def __lt__(self, other, context=None):
|
||||
self, other = _convert_for_comparison(self, other)
|
||||
if other is NotImplemented:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue