MCPcopy Index your code
hub / github.com/python/cpython / __eq__

Method __eq__

Lib/_pydecimal.py:835–841  ·  view source on GitHub ↗
(self, other, context=None)

Source from the content-addressed store, hash-verified

833 # that specified by IEEE 754.
834
835 def __eq__(self, other, context=None):
836 self, other = _convert_for_comparison(self, other, equality_op=True)
837 if other is NotImplemented:
838 return other
839 if self._check_nans(other, context):
840 return False
841 return self._cmp(other) == 0
842
843 def __lt__(self, other, context=None):
844 self, other = _convert_for_comparison(self, other)

Callers

nothing calls this directly

Calls 3

_check_nansMethod · 0.95
_cmpMethod · 0.95
_convert_for_comparisonFunction · 0.85

Tested by

no test coverage detected