(self, other)
| 1210 | return NotImplemented |
| 1211 | |
| 1212 | def _cmp(self, other): |
| 1213 | assert isinstance(other, date) |
| 1214 | assert not isinstance(other, datetime) |
| 1215 | y, m, d = self._year, self._month, self._day |
| 1216 | y2, m2, d2 = other._year, other._month, other._day |
| 1217 | return _cmp((y, m, d), (y2, m2, d2)) |
| 1218 | |
| 1219 | def __hash__(self): |
| 1220 | "Hash." |