Metaclasses in Python

Metaclasses take the mantra “everything is an object” to the next level. One of Python’s fascinating lesser-known features, they allow you to intervene on the creation of classes themselves, and not just their instances. So in other words, metaclasses are like classes for classes, but when would you ever need …