Skip to content

Glossary: Python Beyond the Basics

deepcopy

Also written: copy.deepcopy

A function from the `copy` module that copies every level of nested data, so lists inside lists are not shared with the original.

Where the book teaches it

Related terms

shallow copy