You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying a copy.deepcopy() on a Dotsi instance, there were a KeyError on deepcopy. Passing dict-structures around can easily lead to errors, if one doesn't make a deepcopy of the object. Thus, Dotsi would be better if it had it implementet.
The text was updated successfully, but these errors were encountered:
I agree with you. Deep-copying is useful, and __deepcopy__ should be added to DotsiDict. Will need to add the same to DotsiList too, as the two classes go hand-in-hand.
In the meantime, you could use the (currently undocumented) dotsi.deepCopy() function. It can deep-copy dict, DotsiDict, list, and DotsiList instances.
When trying a copy.deepcopy() on a Dotsi instance, there were a KeyError on deepcopy. Passing dict-structures around can easily lead to errors, if one doesn't make a deepcopy of the object. Thus, Dotsi would be better if it had it implementet.
The text was updated successfully, but these errors were encountered: