add DataHolder.copy()
Returns a DataHolder rather than a dict, so copy() works as expected.
This commit is contained in:
parent
8122690ab9
commit
ef8e0b4538
@ -62,3 +62,6 @@ class DataHolder(dict):
|
||||
|
||||
def __setattr__(self, attr, value):
|
||||
self[attr] = value
|
||||
|
||||
def copy(self):
|
||||
return DataHolder(**dict.copy(self))
|
||||
|
Loading…
Reference in New Issue
Block a user