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

Method __le__

tools/python-3.11.9-amd64/Lib/datetime.py:2108–2114  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

2106 return False
2107
2108 def __le__(self, other):
2109 if isinstance(other, datetime):
2110 return self._cmp(other) <= 0
2111 elif not isinstance(other, date):
2112 return NotImplemented
2113 else:
2114 _cmperror(self, other)
2115
2116 def __lt__(self, other):
2117 if isinstance(other, datetime):

Callers

nothing calls this directly

Calls 2

_cmpMethod · 0.95
_cmperrorFunction · 0.85

Tested by

no test coverage detected