Skip to content

re: Dead Simple Python: Classes VIEW POST


def make_sound(cls):

Should cls be passed into a staticmethod? I thought that was only for class methods


I cannot believe it! I actually missed that little detail: @staticmethod and @classmethod are actually two separate things!

I've just edited the article to correct that, and added a new section to clarify the difference. Thank you so much for correcting that.

code of conduct - report abuse