Kind of like "hey guys, check it out you can just duct tape down the dead-man's switch on this power tool and use it one handed". In Python.
Tuesday, December 13, 2011
when is a no-op not a no-op?
When is a = a not a no-op? When a is a class variable accessed through self.a. May be useful when you want a dynamic initializer for your instances on your class. For example, a property like time_created.
No comments:
Post a Comment