Re:Why Is the Migration to Python 3 Taking So Long?
by int_19h on Friday November 15, 2019 @03:54AM
(#21543352)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.