Author freundTech
Recipients brandtbucher, docs@python, freundTech, gvanrossum
Date 2021-04-07.10:40:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617792027.47.0.961772614464.issue43761@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-04-07 10:40:27freundTechsetrecipients: + freundTech, gvanrossum, docs@python, brandtbucher
2021-04-07 10:40:27freundTechsetmessageid: <1617792027.47.0.961772614464.issue43761@roundup.psfhosted.org>
2021-04-07 10:40:27freundTechlinkissue43761 messages
2021-04-07 10:40:27freundTechcreate