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

My suggestion implied removing the descriptor-based "magic" on regular functions that make them behave as methods when accessed using dot-member syntax, and instead making the "def self.foo" syntax produce a special kind of function that would have that behavior. @staticmethod today basically just suppresses that special behavior on regular functions, so it wouldn't be needed in this case. But yeah, we'd still need @classmethod.


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

Search: