How can I achieve such job:
def get_foo(someobject, foostring):
return someobject.foostring
IE:
if I do get_foo(obj, "name") it should be calling obj.name (see input as string but I call it as an attritube.
Thanks
How can I achieve such job:
def get_foo(someobject, foostring):
return someobject.foostring
IE:
if I do get_foo(obj, "name") it should be calling obj.name (see input as string but I call it as an attritube.
Thanks