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

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


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

Search: