Message399797
Of course it's reasonable to support dict subclasses. We already have a bunch of dict subclasses in the standard library, like collections.defaultdict and collections.Counter, and collections.Counter is significantly slower than it could be because of this issue. (collections.defaultdict seems to be unaffected due to differences between classes implemented in C and Python.) dict.__getitem__ even has dedicated support for a __missing__ hook, which is only useful for subclasses. |
|
Date |
User |
Action |
Args |
2021-08-17 21:21:42 | Kevin Shweh | set | recipients:
+ Kevin Shweh, willingc, Marco Sulla, jack__d |
2021-08-17 21:21:42 | Kevin Shweh | set | messageid: <1629235302.23.0.150006438685.issue44921@roundup.psfhosted.org> |
2021-08-17 21:21:42 | Kevin Shweh | link | issue44921 messages |
2021-08-17 21:21:41 | Kevin Shweh | create | |
|