> > > class M(type): ... def __init__(cls, *args): ... cls.a = 'M.a' ... > > > class C(B): __metaclass__=M ... > > > C.a, C().a ('M.a', 'M.a')