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 eric.smith
Recipients eric.smith
Date 2021-04-12.21:12:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618261930.36.0.318460450157.issue43820@roundup.psfhosted.org>
In-reply-to
Content
In make_dataclasses(), the "namespace" argument is copied because it is mutated. This isn't really necessary: the callback passed to types.new_class() could just update its "ns" parameter with "namespace" and with the new attributes (__anotations__ and default field values).

This would eliminate the need to copy "namespace".
History
Date User Action Args
2021-04-12 21:12:10eric.smithsetrecipients: + eric.smith
2021-04-12 21:12:10eric.smithsetmessageid: <1618261930.36.0.318460450157.issue43820@roundup.psfhosted.org>
2021-04-12 21:12:10eric.smithlinkissue43820 messages
2021-04-12 21:12:10eric.smithcreate