Skip to main content

Timeline for deepcopy override clarification

Current License: CC BY-SA 4.0

4 events
when toggle format what by license comment
Jul 24, 2019 at 11:53 vote accept Miguel
Jul 24, 2019 at 11:34 answer added CodeSamurai777 timeline score: 3
Jul 24, 2019 at 11:33 comment added Mike Scotty Purpose: Sometimes your class contains attributes that can either not be deep-copied or that you do not want to copy but instead share the existing object (e.g. weak references, DB connections, ...). In the for loop in the example, you could filter such attributes and handle them as you need.
Jul 24, 2019 at 11:26 history asked Miguel CC BY-SA 4.0