Raymond Hettinger added the comment:

This is an intentional design choice.  One reason for tightly coupling 
OrderedDict to dict was to preserve freedom for a C-implementation.  Another 
reason was for performance.  IIRC, using super() in __setitem__ slowed the OD 
from 10x slower than dicts to 20x.

Non-cooperative classes (of which Python has many) can be wrapped to make the 
classes cooperative.  The technique is discussed in the blog post 
https://rhettinger.wordpress.com/2011/05/26/super-considered-super/ .

----------
resolution:  -> not a bug
status: open -> closed

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

Reply via email to