title: Python: Test if value can be converted to an int in a list comprehension
body: <p>Basically I want to do this;</p>
  
  <pre><code>return [ row for row in listOfLists if row[x] is int ]
  </code></pre>
  
  <p>But row[x] is a text value that may or may not be convertible to an int</p>
  
  <p>I'm aware that this could be done by:</p>
  
  <pre><code>try:
      int(row[x])
  except:
      meh
  </code></pre>
  
  <p>But it'd be nice to do it is a one-liner.</p>
  
  <p>Any ideas?</p>