Alex Stapleton wrote:
you can't do
var = "varA" obj = struct(varA = "Hello") print obj.var
and expect it to say Hello to you.
Did you mean "print obj.varA"?
I believe he meant that he wanted the equivalent of:
getattr(obj, var)
Steve -- http://mail.python.org/mailman/listinfo/python-list