New submission from Itay azolay <itayazo...@gmail.com>:
Hi, I noticed that 'asdict' use 'deepcopy' on all fields of the dataclass recursively. I believe this behavior can become optional with an argument, and shouldn't be decided for the user as the deepcopy takes significant amount of cpu and can have unexpected consequences on memory. I don't mind taking this PR if you agree. Thanks ---------- components: Library (Lib) messages: 397938 nosy: Itayazolay priority: normal severity: normal status: open title: asdict use deep copy to dataclass instances type: behavior versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44695> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com