mirror of
https://github.com/wassname/catalyst.git
synced 2026-08-14 12:10:24 +08:00
ndicts are now deepcopyable.
This commit is contained in:
@@ -55,6 +55,9 @@ class ndict(MutableMapping):
|
||||
# Abstact Overloads
|
||||
# -----------------
|
||||
|
||||
def __deepcopy__(self, memo):
|
||||
return ndict(copy.deepcopy(self.__internal))
|
||||
|
||||
def __setattr__(self, key, value):
|
||||
if key == 'cls' or key == '__internal' or '_ndict' in key:
|
||||
super(ndict, self).__setattr__(key, value)
|
||||
|
||||
Reference in New Issue
Block a user