3 ms·
Ah sorry, I meant from the method signature. I wouldn't like the totally implicit `self` / `this` found in Java. >Being able to juggle binded and unbinded func
by meowface 8y ago
Ah sorry, I meant from the method signature. I wouldn't like the totally implicit `self` / `this` found in Java.
>Being able to juggle binded and unbinded functions is nice. The explicit self or cls kind of forces you to declare what the intent of your function is.
Sure, but we can already do that with the @classmethod decorator. They could just make it so `cls` is a variable that can be accessed from any method. If it's a class method, `cls = self`, otherwise, `cls = self.__class__`.