What are metaclasses in Python? Technology Community › Category: Python › What are metaclasses in Python? 0 Vote Up Vote Down VietMX Staff asked 4 years ago A metaclass is the class of a class. A class defines how an instance of the class (i.e. an object) behaves while a metaclass defines how a class behaves. A class is an instance of a metaclass. You can call it a ‘class factory’.