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.
Created on 2012年10月30日 08:07 by Ronny.Pfannschmidt, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| test_super.py | Ronny.Pfannschmidt, 2012年10月30日 08:07 | |||
| Messages (2) | |||
|---|---|---|---|
| msg174184 - (view) | Author: Ronny Pfannschmidt (Ronny.Pfannschmidt) | Date: 2012年10月30日 08:07 | |
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 |
|||
| msg174211 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2012年10月30日 13:42 | |
I believe this is a duplicate of issue 14965. If you agree please add yourself to nosy there and review the proposed patch and/or make your own proposal. If you think your issue is different you can reopen this one. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:37 | admin | set | github: 60567 |
| 2012年10月30日 13:42:37 | r.david.murray | set | status: open -> closed superseder: super() and property inheritance behavior nosy: + r.david.murray messages: + msg174211 resolution: duplicate stage: resolved |
| 2012年10月30日 12:49:11 | berker.peksag | set | versions: - Python 3.1, Python 3.5 |
| 2012年10月30日 08:07:59 | Ronny.Pfannschmidt | create | |