(self, other)
| 1195 | return NotImplemented |
| 1196 | |
| 1197 | def _cmp(self, other): |
| 1198 | assert isinstance(other, date) |
| 1199 | assert not isinstance(other, datetime) |
| 1200 | y, m, d = self._year, self._month, self._day |
| 1201 | y2, m2, d2 = other._year, other._month, other._day |
| 1202 | return _cmp((y, m, d), (y2, m2, d2)) |
| 1203 | |
| 1204 | def __hash__(self): |
| 1205 | "Hash." |