make a deep copy, copying the values, any values they contain : copy « Buildin Module « Python Tutorial






from copy import deepcopy

d = { d['names'] = ['Alfred', 'Bertrand']}
c = d.copy()
dc = deepcopy(d)
d['names'].append('Clive')
print d
print dc








14.2.copy
14.2.1.make a deep copy, copying the values, any values they contain
14.2.2.copy.deepcopy() function