title: Change the type in a Python list?
body: <p>Is there a Pythonic way to change the type of every object in a list?</p>
  
  <p>For example, I have a list of objects <code>Queries</code>.
  Is there a fancy way to change that list to a list of strings?</p>
  
  <p>e.g.</p>
  
  <pre><code>lst = [&lt;Queries: abc&gt;, &lt;Queries: def&gt;]
  </code></pre>
  
  <p>would be changed to</p>
  
  <pre><code>lst = ['abc', 'def']
  </code></pre>
  
  <p>When <code>str()</code> is used on a <code>Queries</code> object, the strings I get are the ones in the second code sample above, which is what I would like.</p>
  
  <p>Or do I just have to loop through the list?</p>
  
  <p>Many thanks for any advice.</p>