I don\'t remember whether I was dreaming or not but I seem to recall there being a function which allowed something like,
foo in iter_attr(array of python ob
you could always write one yourself:
def iterattr(iterator, attributename):
for obj in iterator:
yield getattr(obj, attributename)
will work with anything that iterates, be it a tuple, list, or whatever.
I love python, it makes stuff like this very simple and no more of a hassle than neccessary, and in use stuff like this is hugely elegant.