(self, other)
| 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): |