MCPcopy Index your code
hub / github.com/RustPython/RustPython / compare_signal

Method compare_signal

Lib/_pydecimal.py:2885–2895  ·  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

2883 return self
2884
2885 def compare_signal(self, other, context=None):
2886 """Compares self to the other operand numerically.
2887
2888 It's pretty much like compare(), but all NaNs signal, with signaling
2889 NaNs taking precedence over quiet NaNs.
2890 """
2891 other = _convert_other(other, raiseit = True)
2892 ans = self._compare_check_nans(other, context)
2893 if ans:
2894 return ans
2895 return self.compare(other, context=context)
2896
2897 def compare_total(self, other, context=None):
2898 """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