Message390413
PEP 634 structural pattern matching adds an auto-generated __match_args__ attribute to classes with the dataclass decorator and to namedtuples.
This change is currently not documented in the dataclass and namedtuple documentation, nor is it mentioned in PEP 557 Data Classes.
I would suggest adding mentions of this behaviour in those three places.
Additionally I think adding a new parameter to switch off generating __match_args__ to dataclass should be considered, as everything else generated by dataclass can be switched off using a parameter. |
|
Date |
User |
Action |
Args |
2021-04-07 10:40:27 | freundTech | set | recipients:
+ freundTech, gvanrossum, docs@python, brandtbucher |
2021-04-07 10:40:27 | freundTech | set | messageid: <1617792027.47.0.961772614464.issue43761@roundup.psfhosted.org> |
2021-04-07 10:40:27 | freundTech | link | issue43761 messages |
2021-04-07 10:40:27 | freundTech | create | |
|