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

Method compare_signal

Lib/_pydecimal.py:2888–2898  ·  view source on GitHub ↗

Compares self to the other operand numerically. It's pretty much like compare(), but all NaNs signal, with signaling NaNs taking precedence over quiet NaNs.

(self, other, context=None)

Source from the content-addressed store, hash-verified

2886 return self
2887
2888 def compare_signal(self, other, context=None):
2889 """Compares self to the other operand numerically.
2890
2891 It's pretty much like compare(), but all NaNs signal, with signaling
2892 NaNs taking precedence over quiet NaNs.
2893 """
2894 other = _convert_other(other, raiseit = True)
2895 ans = self._compare_check_nans(other, context)
2896 if ans:
2897 return ans
2898 return self.compare(other, context=context)
2899
2900 def compare_total(self, other, context=None):
2901 """Compares self to other using the abstract representations.

Callers 3

test_none_argsMethod · 0.95
compare_signalMethod · 0.45

Calls 3

_compare_check_nansMethod · 0.95
compareMethod · 0.95
_convert_otherFunction · 0.85

Tested by 2

test_none_argsMethod · 0.76