0

Hi all,

Is it possible to copy an object (instance) and manipulate the copy without affecting the original one. I mean,

Suppose: D.node = 'Node' and D.child = {0:'child1',1:'child2'}. Now, copy D to D_c and put
D_c.child={}. So, D should be kept as it is originaly, which means

D.node = 'Node' and D.child = {0:'child1',1:'child2'}
D_c.node='Node' and D_c.child={}

Please
Faniry

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by scru
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.