def a_method(arg1, arg2): pass >>> inspect.getfullargspec(a_method) (['arg1', 'arg2'], None, None, None)