How are Python metaclasses different from regular class inheritance? [duplicate]
The difference is that inheriting from a class does not affect how the class is created, it only affects how instances of the class are created. If you do: class A(object): # stuff class B(A): # stuff then A does not have any opportunity to “hook in” when B is created. Methods of A may … Read more