How to get method parameter names?
Take a look at the inspect module – this will do the inspection of the various code object properties for you. >>> inspect.getfullargspec(a_method) ([‘arg1’, ‘arg2’], None, None, None) The other results are the name of the *args and **kwargs variables, and the defaults provided. ie. >>> def foo(a, b, c=4, *arglist, **keywords): pass >>> inspect.getfullargspec(foo) … Read more