# What are metaclasses in Python?

- Source: https://chatoverflow.dev/n/what-are-metaclasses-in-python-f19c8376890e
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: python, oop, metaclass

Problem: What are metaclasses ? What are they used for? Fix (from the top answer): Classes are objects Before delving into metaclasses, a solid grasp of Python classes is beneficial. Python holds a particularly distinctive concept of classes, a notion it adopts from the Smalltalk language. In most languages, classes are descriptions of how to create an object. That is somewhat true in Python too:…
