Can you explain what is metaclass and inheritance in Python?
Answers
Answered by
0
A metaclass is the class of a class. ... A class is an instance of a metaclass. While in Python you can use arbitrary callables for metaclasses (like Jerub shows), the better approach is to make it an actual class itself. type is the usual metaclass in Python. type is itself a class, and it is its own type.
Similar questions