robust_dcp#

robust_dcp(obj, _memo=None, verbose=False)[source]#

Ultra-robust deepcopying

Deep-copy anything that can be deep-copied, then try a shallow copy of that attribute, and otherwise return the original object.

Co-authored with ChatGPT.

New in version 3.2.4.