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

Method __lt__

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

Source from the content-addressed store, hash-verified

838 return self._cmp(other) == 0
839
840 def __lt__(self, other, context=None):
841 self, other = _convert_for_comparison(self, other)
842 if other is NotImplemented:
843 return other
844 ans = self._compare_check_nans(other, context)
845 if ans:
846 return False
847 return self._cmp(other) < 0
848
849 def __le__(self, other, context=None):
850 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