How can I create a copy of an object in Python? Technology Community › Category: Python › How can I create a copy of an object in Python? 0 Vote Up Vote Down VietMX Staff asked 4 years ago To get a fully independent copy (deep copy) of an object you can use the copy.deepcopy() function. Deep copies are recursive copies of each interior object. For shallow copy use copy.copy(). Shallow copies are just copies of the outermost container.