Turns out that I’m always, repeat, always re-writing, and re-organizing my code. If you’re like me, you’ll want to leave your old functions or classes & methods in place while you re-write or move them. Then you’ll want to leave little tags everywhere there is an old call to one of these. Seth Gibson (@voMethod on Twitter)[…]
(Lifted from Didip Kerabat’s blog HERE) Unlike Java, where static method and class method are the same thing, in Python there is subtle difference: Say function a() is defined in Parent Class, while Sub Class extends Parent Class If function a() has @staticmethod decorator, Sub.a() still refers to definition inside Parent Class. Whereas, If function a() has @classmethod decorator, Sub.a()[…]