On Wed, Aug 20, 2008 at 5:37 AM, Marc Tompkins <[EMAIL PROTECTED]> wrote:
> print(getattr(myObject, "colour")) Or, of course, print getattr(myObject, myAttribute) which is what the OP wanted. Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor