Message190979
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 ;-) |
|
Date |
User |
Action |
Args |
2013-06-11 18:01:52 | ronaldoussoren | set | recipients:
+ ronaldoussoren, amaury.forgeotdarc |
2013-06-11 18:01:52 | ronaldoussoren | set | messageid: <1370973712.89.0.78719015162.issue18181@psf.upfronthosting.co.za> |
2013-06-11 18:01:52 | ronaldoussoren | link | issue18181 messages |
2013-06-11 18:01:52 | ronaldoussoren | create | |
|