(self, other)
| 2284 | return NotImplemented |
| 2285 | |
| 2286 | def __gt__(self, other): |
| 2287 | if isinstance(other, datetime): |
| 2288 | return self._cmp(other) > 0 |
| 2289 | else: |
| 2290 | return NotImplemented |
| 2291 | |
| 2292 | def _cmp(self, other, allow_mixed=False): |
| 2293 | assert isinstance(other, datetime) |