human
How to extract from a list of objects a list of specific attribute?
assistant
Here is some code to extract attribute `my_attr` from each object in list `my_list`

[o.my_attr for o in my_list]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.