4 ms·
"Metaclasses are deeper magic than 99% of users should ever worry about. If you wonder whether you need them, you don’t (the people who actually need them know
by wenc 3y ago
"Metaclasses are deeper magic than 99% of users should ever worry about. If you wonder whether you need them, you don’t (the people who actually need them know with certainty that they need them, and don’t need an explanation about why)." — Tim Peters
I once used metaclasses because I was writing a code generator for a DSL. But that was the only time.
Conceptually they're not too difficult but more likely than not YAGNI.
https://realpython.com/python-metaclasses/ https://realpython.com/python-metaclasses/