MCPcopy Create free account
hub / github.com/ActiveState/code / copy

Method copy

recipes/Python/117215_A_Date_module/recipe-117215.py:139–143  ·  view source on GitHub ↗

Deep copy of Date objects.

(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 1

DateClass · 0.70

Tested by

no test coverage detected