4 ms·
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
by extr 3y ago
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.