Message14169
Logged In: YES
user_id=6656
Two years on, I think about this again. Still here? :)
The motivating thought is that:
class A(object): pass
class B(object): pass
B.__bases__ = (A,)
and
class A(object): pass
class B(A): pass
should be equivalent.
An issue that hadn't occurred to me before is that in the first example both
A and B have a __dict__ (and __weakref__) descriptor, and in the second
B doesn't. Should B's __dict__ descriptor be removed on the
__bases__ assignment? |
|
Date |
User |
Action |
Args |
2007-08-23 14:10:17 | admin | link | issue672115 messages |
2007-08-23 14:10:17 | admin | create | |
|