Hacker News new | ask | show | jobs
by BiteCode_dev 1366 days ago
Yes, also for anything else than subclass registration, there are things like the descriptor protocol or class decorators that are likely to be easier to use, debug and understand.

And metaclasses can be any callable, not just class. It's usually better to use a simple function.