Irit Katriel <iritkatr...@yahoo.com> added the comment:

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).

----------
nosy: +iritkatriel
versions: +Python 3.10, Python 3.8, Python 3.9 -Python 2.7, Python 3.1, Python 
3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue1475692>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to