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

FWIW personally I use @staticmethod when I have small-ish "utility" methods that are only ever used in-class. Basically just a convenient way of organizing code and making the intended context clear.


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

Search: