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 iritkatriel
Recipients ajaksu2, eric.snow, gangesmaster, iritkatriel, josh.r, kushal.das, matthieu.labbe, r.david.murray, rhettinger, serhiy.storchaka, torsten
Date 2020-11-07.01:40:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1604713242.01.0.082049394652.issue1475692@roundup.psfhosted.org>
In-reply-to
Content
Calling the overridden __getitem__ is rejected due to performance.

Forbidding dict subclasses is rejected because subclasses like ordereddict and defaultdict can be useful.

I think the only remaining possibilities are to do nothing or to raise an error when __dict__ is set to a dict subclass that overrides __getitem__ (that should be ok to do, because that __getitem__ is not going to be called).
History
Date User Action Args
2020-11-07 01:40:42iritkatrielsetrecipients: + iritkatriel, rhettinger, gangesmaster, ajaksu2, r.david.murray, matthieu.labbe, torsten, eric.snow, serhiy.storchaka, kushal.das, josh.r
2020-11-07 01:40:42iritkatrielsetmessageid: <1604713242.01.0.082049394652.issue1475692@roundup.psfhosted.org>
2020-11-07 01:40:42iritkatriellinkissue1475692 messages
2020-11-07 01:40:41iritkatrielcreate