MCPcopy Index your code
hub / github.com/python/cpython / __le__

Method __le__

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

Source from the content-addressed store, hash-verified

1190 return NotImplemented
1191
1192 def __le__(self, other):
1193 if isinstance(other, date) and not isinstance(other, datetime):
1194 return self._cmp(other) <= 0
1195 return NotImplemented
1196
1197 def __lt__(self, other):
1198 if isinstance(other, date) and not isinstance(other, datetime):

Callers

nothing calls this directly

Calls 1

_cmpMethod · 0.95

Tested by

no test coverage detected