Better way would be: 'results = [getattr(item, field) for item in db_list]'