(self, other)
| 2130 | _cmperror(self, other) |
| 2131 | |
| 2132 | def __gt__(self, other): |
| 2133 | if isinstance(other, datetime): |
| 2134 | return self._cmp(other) > 0 |
| 2135 | elif not isinstance(other, date): |
| 2136 | return NotImplemented |
| 2137 | else: |
| 2138 | _cmperror(self, other) |
| 2139 | |
| 2140 | def _cmp(self, other, allow_mixed=False): |
| 2141 | assert isinstance(other, datetime) |