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 brandtbucher
Recipients brandtbucher, docs@python, eric.smith, freundTech, gvanrossum, rhettinger
Date 2021-04-12.16:35:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618245321.1.0.517202507103.issue43761@roundup.psfhosted.org>
In-reply-to
Content
> For named tuples, there isn't an include/exclude option, so no extra mention is warranted.

I think a note in the docs could still be valuable, if only because defining __match_args__ for named tuples changes the inherited tuple behavior for positional matches quite significantly: "case tuple(x)" and "case MyNT(x)" don't mean the same thing.

(Although perhaps this could be inferred from the new constructor signature.)
History
Date User Action Args
2021-04-12 16:35:21brandtbuchersetrecipients: + brandtbucher, gvanrossum, rhettinger, eric.smith, docs@python, freundTech
2021-04-12 16:35:21brandtbuchersetmessageid: <1618245321.1.0.517202507103.issue43761@roundup.psfhosted.org>
2021-04-12 16:35:21brandtbucherlinkissue43761 messages
2021-04-12 16:35:21brandtbuchercreate