Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: