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.

Author mwh
Recipients
Date 2002-11-20.16:09:31
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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.
History
Date User Action Args
2007-08-23 15:18:03adminlinkissue635933 messages
2007-08-23 15:18:03admincreate