Python 2 vs. 3 Metaclass Syntax Clash

Python 2 defined metaclasses via a `__metaclass__` class attribute, while Python 3 shifted to a `metaclass` keyword argument in the class definition, creating a significant syntax incompatibility that `six` aimed to resolve.

Sources

Open the full topic