The Metaclass Model

To really understand how metaclasses do their work, you need to understand a bit more about Python’s type model and what happens at the end of a class statement.