Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > > FWIW, metaclasses do have a class attribute that refers to itself !-) > One metaclass (i.e. type) has a class attribute that refers to itself.
Other metaclasses have a class attribute that refers to the metaclass's metaclass. I can't think of any situation where a metaclass would be its own metaclass except for 'type' itself, but then I think I've got a headache trying to think about this so maybe I'm wrong. In fact, thinking about it a bit more, I think that if you did have another metaclass which is its own metaclass then the class cannot subclass 'object'. -- Duncan Booth http://kupuguy.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list