class a : b = 10
I have a class \'a\' with attribute \'b\'.
o = a()
I create a object \'o\' of class \'a\
Use the built-in getattr function:
getattr(o, v)
Are you looking for something like this?