Message390865
> 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.) |
|
Date |
User |
Action |
Args |
2021-04-12 16:35:21 | brandtbucher | set | recipients:
+ brandtbucher, gvanrossum, rhettinger, eric.smith, docs@python, freundTech |
2021-04-12 16:35:21 | brandtbucher | set | messageid: <1618245321.1.0.517202507103.issue43761@roundup.psfhosted.org> |
2021-04-12 16:35:21 | brandtbucher | link | issue43761 messages |
2021-04-12 16:35:21 | brandtbucher | create | |
|