Message41598
Logged In: YES
user_id=6656
Here's an update, just in case my hard drive explodes or
something.
I'm still not sure what should and shouldn't be allowed for
__name__, but I haven't thought about it too hard. If you
have time, an email with one-syllable-per-word instructions
would be appreciated :)
__bases__ is getting there: __subclasses__ still works.
This doesn't, though:
pass
class C2(object):
def __getattribute__(self, attr):
if attr == 'a':
return 1
else:
return super(C2, self).__getattribute__(attr)
def meth(self):
print 1
class D(C):
pass
d = D()
D.__bases__ = (C2,)
d.a
sigh, more complexity. Should have some hours to spend on
this this week.
I've started on the test suite, but that's not part of the
diff yet. |
|
Date |
User |
Action |
Args |
2007-08-23 15:18:03 | admin | link | issue635933 messages |
2007-08-23 15:18:03 | admin | create | |
|