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 ronaldoussoren
Recipients amaury.forgeotdarc, ronaldoussoren
Date 2013-06-11.18:01:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370973712.89.0.78719015162.issue18181@psf.upfronthosting.co.za>
In-reply-to
Content
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 ;-)
History
Date User Action Args
2013-06-11 18:01:52ronaldoussorensetrecipients: + ronaldoussoren, amaury.forgeotdarc
2013-06-11 18:01:52ronaldoussorensetmessageid: <1370973712.89.0.78719015162.issue18181@psf.upfronthosting.co.za>
2013-06-11 18:01:52ronaldoussorenlinkissue18181 messages
2013-06-11 18:01:52ronaldoussorencreate