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
I can't work out whether *Cloner methods should be mapped to __copy__ or __deepcopy__ magic methods. In fact I am not sure the point of the cloner visitors are the first place, as __deepcopy__ should do the job no?
The text was updated successfully, but these errors were encountered:
I just ran into a problem trying to deepcopy an object where it copied the document it belonged to as well, since all "document-level" objects contain a reference to the document they belong to. So having cloner methods is probably a good idea. Maybe all classes should implement a 'clone(self)' method for consistency between abstraction and user (property/state) layers.
I can't work out whether
*Cloner
methods should be mapped to__copy__
or__deepcopy__
magic methods. In fact I am not sure the point of the cloner visitors are the first place, as__deepcopy__
should do the job no?The text was updated successfully, but these errors were encountered: