(self, name, value)
Make params accessible via self.foo_param or self.foo_paramlist.

        Underscores, legal in python variable names, are converted to dashes,
        which are legal in IANA tokens.
Make params accessible via self.foo_param or self.foo_paramlist.
Make params accessible via self . foo_param or self . foo_paramlist .
def __setattr__(self, name, value):
        """
        Make params accessible via self.foo_param or self.foo_paramlist.

        Underscores, legal in python variable names, are converted to dashes,
        which are legal in IANA tokens.
        """
        if name.endswith('_param'):
            if type(value) == list:
                self.params[toVName(name, 6, True)] = value
            else:
                self.params[toVName(name, 6, True)] = [value]
        elif name.endswith('_paramlist'):
            if type(value) == list:
                self.params[toVName(name, 10, True)] = value
            else:
                raise VObjectError("Parameter list set to a non-list")
        else:
            prop = getattr(self.__class__, name, None)
            if isinstance(prop, property):
                prop.fset(self, value)
            else:
                object.__setattr__(self, name, value)
def __setattr__ ( self , name , value ) : if name . endswith ( '_param' ) : if type ( value ) == list : self . params [ toVName ( name , 6 , True ) ] = value else : self . params [ toVName ( name , 6 , True ) ] = [ value ] elif name . endswith ( '_paramlist' ) : if type ( value ) == list : self . params [ toVName ( name , 10 , True ) ] = value else : raise VObjectError ( "Parameter list set to a non-list" ) else : prop = getattr ( self . __class__ , name , None ) if isinstance ( prop , property ) : prop . fset ( self , value ) else : object . __setattr__ ( self , name , value )