Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Deepcopy not working #73
Hi, I tried to use
from copy import deepcopy from mappyfile.ordereddict import DefaultOrderedDict d = DefaultOrderedDict() d['__type__'] = 'layer' e = deepcopy(d) print(e)
This is happening in Python >= 3.5
Following the logic maybe it should be like this?
# ordereddict.py def __deepcopy__(self, memo): return type(self)(self.default_factory, copy.deepcopy(iter(self.items())))