Hacker News new | ask | show | jobs
by corysama 5258 days ago
Roll-your-own prototypical inheritance. I also vaguely recall rolling my own approximation to class inheritance long ago.
1 comments

You can do that trivially with __*attr__ methods in Python. If you want something more structured, you can easily do it with a metaclass.