archive
Date : December 2010

thumb

@deprecated Decorator

Categories: PyMEL, Python
Tags: ,
Comments: No Comments
Published on: December 18, 2010

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)[…]

thumb

Python @staticmethod and @classmethod

Categories: Python
Tags:
Comments: No Comments
Published on: December 10, 2010

(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()[…]

Welcome , today is Sunday, April 30, 2017