![Copy dictionary and modify it without affecting the original - Ignition - Inductive Automation Forum Copy dictionary and modify it without affecting the original - Ignition - Inductive Automation Forum](https://global.discourse-cdn.com/business4/uploads/inductiveautomation/original/3X/6/0/60e74f5d9c8870a2c6aff61152fa112085ad5a3b.png)
Copy dictionary and modify it without affecting the original - Ignition - Inductive Automation Forum
If you don't want to make a shallow copy of a Python list, then you need to use Python's `deepcopy` function from the `copy` module. A deep copy will create a copy
![Copy dictionary and modify it without affecting the original - Ignition - Inductive Automation Forum Copy dictionary and modify it without affecting the original - Ignition - Inductive Automation Forum](https://global.discourse-cdn.com/business4/uploads/inductiveautomation/optimized/3X/6/a/6ab099e0388919e5f8eff7cbf2d756a550aaab7b_2_690x353.png)
Copy dictionary and modify it without affecting the original - Ignition - Inductive Automation Forum
![TestDriven.io on X: "Python tip: A shallow copy (copy.copy()) duplicates the object but not its nested elements. A deep copy (copy.deepcopy()) also duplicates all nested elements. Changes in nested elements of a TestDriven.io on X: "Python tip: A shallow copy (copy.copy()) duplicates the object but not its nested elements. A deep copy (copy.deepcopy()) also duplicates all nested elements. Changes in nested elements of a](https://pbs.twimg.com/media/GC7ftEZWoAAERfe.jpg:large)