Daniel Urban <urban.dani...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue14965>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to