Ronald Oussoren added the comment:

I don't think it is possible to avoid adding a new slot. The default 
implementation of tp_getattro (PyObject_GenericGetAttr) looks in the instance 
dict, while super does not (because it wants a less specific implementation).  

PyObject_GenericGetAttr will also walk the entire MRO, while 
super.__getattribute__ does not start search at the first entry in the MRO.

Although I'd love to be proven wrong ;-)

----------

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

Reply via email to