cp#

cp(obj, die=True)[source]#

Shortcut to perform a shallow copy operation

Almost identical to copy.copy(), but optionally allow failures

New in version 2.0.0: default die=True instead of False
New in version 3.1.4: “verbose” argument removed; warning raised