Is it dangeous when using custom metaclass?
def __init__(self, clsname, bases, clsdict):
offset = 0
setattr(self, 'struct_size', offset)
As my understanding, the metaclass's __init__ was called when a class was created. In the above example, both the Structure and PolyHeader called it. My question is: because the PolyHeader inherited Structure, is it reasonable for PolyHeader to call this __init__ again? Will it cause any possible trouble?