[issue14965] super() and property inheritance behavior

Daniel Urban report at bugs.python.org
Mon Jun 4 21:26:52 CEST 2012


Daniel Urban <urban.dani+py at gmail.com> added the comment:

I'm attaching a patch implementing super.__setattr__ (and __delattr__).

The implementation in the patch only works, if super can find a data descriptor in the MRO, otherwise it throws an AttributeError. As it can be seen in the tests, in some cases this may result in counter-intuitive behaviour. But I wasn't able to find another behaviour, that is consistent with both super.__getattr__ and normal __setattr__ semantics.

----------
keywords: +patch
nosy: +daniel.urban
Added file: http://bugs.python.org/file25820/super_setattr.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14965>
_______________________________________


More information about the Python-bugs-list mailing list