title: What's the pythonic idiom for making a simple list out of a list of instances?
body: <p>I have a list of record instances returned by SQLAlchemy.</p>
  
  <p>While the instances have many attributes, I want a new list with only one of the attributes. The java coder in me says:</p>
  
  <pre><code>my_records = query.all()
  names = []
  for my_record in my_records:
      names.append(my_record.name)
  </code></pre>
  
  <p>...which works, of course.  But What's the Pythonic answer? I know there a one-liner that includes these 4 lines into 1, but finding it is like googling for "for".</p>