Hacker News new | ask | show | jobs
by jemfinch 5258 days ago
You can do that trivially with __*attr__ methods in Python. If you want something more structured, you can easily do it with a metaclass.