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

Method __le__

Lib/_pydatetime.py:1177–1180  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

1175 return NotImplemented
1176
1177 def __le__(self, other):
1178 if isinstance(other, date) and not isinstance(other, datetime):
1179 return self._cmp(other) <= 0
1180 return NotImplemented
1181
1182 def __lt__(self, other):
1183 if isinstance(other, date) and not isinstance(other, datetime):

Callers

nothing calls this directly

Calls 2

_cmpMethod · 0.95
isinstanceFunction · 0.85

Tested by

no test coverage detected