Eric V. Smith <e...@trueblade.com> added the comment:
The reason for the deep copying was to support changing a hierarchy of dataclasses into something that could be JSON serialized. But it didn't really work out. It recurses into dataclasses, namedtuples, lists, tuples, and dicts, and deep copies everything else. As I said, it's a design flaw. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43905> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com