aeroniom.blogg.se

Fastcopy timestamp
Fastcopy timestamp









fastcopy timestamp fastcopy timestamp

_deepcopy_() implementation needs to make a deep copy of a component, it should call the deepcopy() function with the componentĪs first argument and the memo dictionary as second argument. Operation it is passed one argument, the memo dictionary. The latter is called to implement the deep copy The former isĬalled to implement the shallow copy operation no additionalĪrguments are passed. In order for a class to define its own copy implementation, it canĭefine special methods _copy_() and _deepcopy_(). You can define _copy_ method for your DictWithTimestamp class in which you can copy additional class data. At first i thought about _copy_ overriding but this way you will not use built-in dict copy method.











Fastcopy timestamp