(self, other)
| 1205 | return NotImplemented |
| 1206 | |
| 1207 | def __gt__(self, other): |
| 1208 | if isinstance(other, date) and not isinstance(other, datetime): |
| 1209 | return self._cmp(other) > 0 |
| 1210 | return NotImplemented |
| 1211 | |
| 1212 | def _cmp(self, other): |
| 1213 | assert isinstance(other, date) |