def set_default ( self_ , param_name , value ) : cls = self_ . cls setattr ( cls , param_name , value )
how to set a default value if no value given in a setter function for a clas python
Set the default value of param_name .
def set_default(self_,param_name,value):
        """
        Set the default value of param_name.

        Equivalent to setting param_name on the class.
        """
        cls = self_.cls
        setattr(cls,param_name,value)