Message390907
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". |
|
Date |
User |
Action |
Args |
2021-04-12 21:12:10 | eric.smith | set | recipients:
+ eric.smith |
2021-04-12 21:12:10 | eric.smith | set | messageid: <1618261930.36.0.318460450157.issue43820@roundup.psfhosted.org> |
2021-04-12 21:12:10 | eric.smith | link | issue43820 messages |
2021-04-12 21:12:10 | eric.smith | create | |
|