I am not sure if this will make sense. Isn't it all the deepcopy point that every object asks its children to copy itself?
Presumably, you know exactly what kind of object you are copying and what its children look like, so if I were you, I would just write my own function to copy it. It should not be too complicated.
source share