loading...

re: Dead Simple Python: Classes VIEW POST

FULL DISCUSSION
 

I'd like to add that you should mention that there's pretty much never a good reason to use staticmethod as opposed to a global method in the module.

Usually, when we write a module, we can simply write a method outside the class, to get the same behaviour as a staticmethod

 

I try to avoid such statements, especially in this article series. If it exists, it exists for some reason. ;)

That said, I plan to discuss the ins and outs of this in more depth in the book.

 

Ah I see! I really appreciate this series. It is very well written and enjoyable to read!

By the way, what is that reason?

code of conduct - report abuse