Message8825
Logged In: YES
user_id=6380
It would seem a bug, but according to the CVS log it's
intentional. typeobject.c 2.120 introduces an explicit check
that skips data descriptors (such as properties). The
motivation:
- super(C, C()).__class__ would return the __class__
attribute of C()
rather than the __class__ attribute of the super object.
This is
confusing. To fix this, I decided to change the semantics
of super
so that it only applies to code attributes, not to data
attributes.
After all, overriding data attributes is not supported
anyway.
So I think this is a feature after all.
|
|
Date |
User |
Action |
Args |
2007-08-23 13:58:44 | admin | link | issue505028 messages |
2007-08-23 13:58:44 | admin | create | |
|