extract attribute `my_attr` from each object in list `my_list`,[o.my_attr for o in my_list]