This question already has answers here:
Getting list of parameter names inside python function [duplicate]
(4 answers)
Closed 6 years ago.
Is there a way to get the parameter names a function takes?
def foo(bar, buz):
pass
magical_way(foo) == ["bar", "buz"]