I have a list of objects:
[Object_1, Object_2, Object_3]
Each object has an attribute: time:
Object_1.time = 20 Object_2.ti
from operator import attrgetter items = map(attrgetter('time'), objects)