¡@

Home 

python Programming Glossary: is_silly_enough

Using class/static methods as default parameter values within methods of the same class

http://stackoverflow.com/questions/3083692/using-class-static-methods-as-default-parameter-values-within-methods-of-the-sam

like this class SillyWalk object @staticmethod def is_silly_enough walk return False It's never silly enough def walk self appraisal_method.. It's never silly enough def walk self appraisal_method is_silly_enough self.do_stuff was_good_enough reason appraisal_method self if.. the caller's perspective. Anyway this doesn't work because is_silly_enough is not actually a function it is an object whose __get__ method..