This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Itayazolay
Recipients Itayazolay
Date 2021-07-21.11:29:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626866962.24.0.087690350539.issue44695@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2021-07-21 11:29:22Itayazolaysetrecipients: + Itayazolay
2021-07-21 11:29:22Itayazolaysetmessageid: <1626866962.24.0.087690350539.issue44695@roundup.psfhosted.org>
2021-07-21 11:29:22Itayazolaylinkissue44695 messages
2021-07-21 11:29:22Itayazolaycreate