Deep Clone Object

Create a deep copy of an object (handles nested objects and arrays).

Code

General
import copy
return copy.deepcopy(obj)

Parameters

Object to clone

Server

More Python Snippets