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

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

sql server - python to mssql encoding problem -

windows - Python Service Installation - "Could not find PythonClass entry" -