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

Method __le__

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

Source from the content-addressed store, hash-verified

847 return self._cmp(other) < 0
848
849 def __le__(self, other, context=None):
850 self, other = _convert_for_comparison(self, other)
851 if other is NotImplemented:
852 return other
853 ans = self._compare_check_nans(other, context)
854 if ans:
855 return False
856 return self._cmp(other) <= 0
857
858 def __gt__(self, other, context=None):
859 self, other = _convert_for_comparison(self, other)

Callers 1

Calls 3

_compare_check_nansMethod · 0.95
_cmpMethod · 0.95
_convert_for_comparisonFunction · 0.85

Tested by 1