MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __le__

Method __le__

tools/python-3.11.9-amd64/Lib/_pydecimal.py:908–915  ·  view source on GitHub ↗
(self, other, context=None)

Source from the content-addressed store, hash-verified

906 return self._cmp(other) < 0
907
908 def __le__(self, other, context=None):
909 self, other = _convert_for_comparison(self, other)
910 if other is NotImplemented:
911 return other
912 ans = self._compare_check_nans(other, context)
913 if ans:
914 return False
915 return self._cmp(other) <= 0
916
917 def __gt__(self, other, context=None):
918 self, other = _convert_for_comparison(self, other)

Callers

nothing calls this directly

Calls 3

_compare_check_nansMethod · 0.95
_cmpMethod · 0.95
_convert_for_comparisonFunction · 0.85

Tested by

no test coverage detected