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

Method __lt__

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

Source from the content-addressed store, hash-verified

2114 _cmperror(self, other)
2115
2116 def __lt__(self, other):
2117 if isinstance(other, datetime):
2118 return self._cmp(other) < 0
2119 elif not isinstance(other, date):
2120 return NotImplemented
2121 else:
2122 _cmperror(self, other)
2123
2124 def __ge__(self, other):
2125 if isinstance(other, datetime):

Callers

nothing calls this directly

Calls 2

_cmpMethod · 0.95
_cmperrorFunction · 0.85

Tested by

no test coverage detected