[New-bugs-announce] [issue16363] super cannot invoke descriptors
Ronny Pfannschmidt
report at bugs.python.org
Tue Oct 30 09:07:59 CET 2012
New submission from Ronny Pfannschmidt:
this means its much harder to have a mixin to change the behaviour of a property
instead of super(Mixin, self).prop = foo
the code is super(Mixin, type(self)).prop.__set__(self, foo)
which is way harder to understand
the attached file demonstrates the problem and has a proof of concept for an extended super allowing descriptor invocations
----------
components: Interpreter Core
files: test_super.py
messages: 174184
nosy: Ronny.Pfannschmidt
priority: normal
severity: normal
status: open
title: super cannot invoke descriptors
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file27792/test_super.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16363>
_______________________________________
More information about the New-bugs-announce
mailing list