(self, name)
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 __getattr__(self, name):
        """
        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.
        """
        try:
            if name.endswith('_param'):
                return self.params[toVName(name, 6, True)][0]
            elif name.endswith('_paramlist'):
                return self.params[toVName(name, 10, True)]
            else:
                raise AttributeError(name)
        except KeyError:
            raise AttributeError(name)
def __getattr__ ( self , name ) : try : if name . endswith ( '_param' ) : return self . params [ toVName ( name , 6 , True ) ] [ 0 ] elif name . endswith ( '_paramlist' ) : return self . params [ toVName ( name , 10 , True ) ] else : raise AttributeError ( name ) except KeyError : raise AttributeError ( name )