"bob gailer" <bgai...@gmail.com> wrote

I need to use features.a as i am iterating through a list and a would
be the different features i want to check if they exist, and then use
the variable.

I hope that makes sense, or if anyone has any suggestion on how
properly to do this!

Even though Alan missed your point, I understood it. So your explanation was OK (for me).

print getattr(features, a)

And now that I see Bob's solution I understand the question! :-)

Alan G.

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to