Names of function's args?

vigasinus vi at rial.net
Tue Jan 29 07:42:01 EST 2002


Hello, All

We can easily get names of function's arguments inside of a function
body?

>>> def f(arg1, arg2):
...   print dir()
... 
>>> f(1,2)
['arg1', 'arg2']

How to get them outside of a function?

Thanks.

Regards, Ivan <vi at rial.net>





More information about the Python-list mailing list