copy.deepcopy python 3 code example Example: python clone object import copy new_ob = copy.deepcopy(old_ob)