title: Python List Slicing with Arbitrary Indices
body: <p>Is there a better way to extract arbitrary indices from a list in python?</p>
  
  <p>The method I currently use is:</p>
  
  <pre><code>a = range(100)
  s = [a[i] for i in [5,13,25]]
  </code></pre>
  
  <p>Where a is the array I want to slice, and [5,13,25] are the elements that I want to get.  It seems much more verbose than the Matlab equivalent:</p>
  
  <pre><code>a = 0:99;
  s = a([6,14,26])
  </code></pre>