Given the Python function:
def a_method(arg1, arg2): pass
How can I extract the number and names of the arguments. I.e., given that I h
I think what you're looking for is the locals method -
In [6]: def test(a, b):print locals() ...: In [7]: test(1,2) {'a': 1, 'b': 2}