Deep copy of Date objects.
(self)
| 137 | self.year) |
| 138 | |
| 139 | def copy(self): |
| 140 | """Deep copy of Date objects.""" |
| 141 | ret = Date() |
| 142 | ret.year, ret.month, ret.day = self.year, self.month, self.day |
| 143 | return ret |
| 144 | |
| 145 | #The iterator protocol. The iteration is "destructive", like in files. |
| 146 | def __iter__(self): |