Python list function argument names

Viewed 60642

Is there a way to get the parameter names a function takes?

def foo(bar, buz):
    pass

magical_way(foo) == ["bar", "buz"]
2 Answers
Related