Suppose, I have simple python function named foo as shown below,
def foo(arg1,arg2):
#do something with args
a = arg1 + arg2
return a
I get name of the function using
>> foo.func_name
how can I get
>> foo.somemethod ?
#do something with args
a = arg1 + arg2
return a
What is best way to do this? Thanks in advance.