I have this method that takes in an unknown number of args and I have some variables from another class that I want to match the arg variable name to. The variable names are the same across this current class and the OtherClass. I was thinking something like:
def my_method(self, *args):
for arg in args:
OtherClass.arg_variable_name = arg # where "arg" on the right is the value
How could I do this effectively in python?
dictx=5;def n(p):print "varname is ?"; n(x) ;is the var name of 5 x or p ? multiple names can point to the same object... what is the actual variable name of the object?