Standard Library

copy(), deepcopy()

nickas 2019. 7. 5. 17:54

 

 


copy(Shallow and deep copy operations)

 

copy — Shallow and deep copy operations — Python 3.7.4rc2 documentation

copy — Shallow and deep copy operations Source code: Lib/copy.py Assignment statements in Python do not copy objects, they create bindings between a target and an object. For collections that are mutable or contain mutable items, a copy is sometimes needed

docs.python.org