3 ms·
Rather than highlight the specific string "self", instead highlight the first parameter of any non-static class method?
by mikepurvis 11y ago
Rather than highlight the specific string "self", instead highlight the first parameter of any non-static class method?
- 1st1 11y agoWell, if it's a decorated function, then one of the decorators might consume the first argument. IOW there is no reliable way to tell if the first argument of the method is really "self" or something else. In this very case its better to just stick to the conventional name.