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 Kevin Shweh
Recipients Kevin Shweh, Marco Sulla, jack__d, willingc
Date 2021-08-17.21:21:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629235302.23.0.150006438685.issue44921@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-08-17 21:21:42Kevin Shwehsetrecipients: + Kevin Shweh, willingc, Marco Sulla, jack__d
2021-08-17 21:21:42Kevin Shwehsetmessageid: <1629235302.23.0.150006438685.issue44921@roundup.psfhosted.org>
2021-08-17 21:21:42Kevin Shwehlinkissue44921 messages
2021-08-17 21:21:41Kevin Shwehcreate