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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.