def __deepcopy__(self, memodict={}): fields = [d for d in self._dimensions] if self._orders is not None: fields += [field for (field, _) in self._orders] for field in fields: field = find_field_in_modified_field(field) memodict[id(field)] = field return deepcopy(self, memodict)
def __deepcopy__(self, memodict={}): memodict[id(self.field)] = self.field return deepcopy(self, memodict)
def __deepcopy__(self, memodict={}): wrapped_key = super().__getattribute__("wrapped_key") wrapped = super().__getattribute__(wrapped_key) memodict[id(wrapped)] = wrapped return deepcopy(self, memodict)
def __deepcopy__(self, memodict={}): for field in self: memodict[id(field)] = field return deepcopy(self, memodict)
def __deepcopy__(self, memodict={}): for item in self.items: memodict[id(item)] = item return deepcopy(self, memodict)
def __deepcopy__(self, memodict={}): for field in self.dimension_map.values(): memodict[id(field)] = field return deepcopy(self, memodict)