How to get the NAME of the passed parameter ?
Eg. in the example below how to get printed , inside my_func() , value = "test_var"
def my_func(aaa):
[INDENT]print aaa # <---- this will print the VALUE of passed parameter 'aaa' [/INDENT]
[INDENT]# ..... but how to print the NAME of the 'aaa' above as called by a parent function main() - i.e.
how to make it print 'test_var'[/INDENT]
def main():
[INDENT]test_var = 123[/INDENT]
[INDENT]my_func(test_var)[/INDENT]
Note that I do not want to get 'aaa' printed but 'test_var'