oop - How can I create a copy of an object in Python? -
i create copy of object. want new object possess properties of old object (values of fields). want have independent objects. so, if change values of fields of new object, old object should not affected that.
have @ copy.deepcopy()
function. should need. have @ this answer related question nice explanation.
Comments
Post a Comment