title: Python : Clean and efficient way to remove items that are not convertable to int from list
body: <p>I have a list like this:</p>
  
  <pre><code>mylist = [1.0,2.0,3.0,4.0,...,u'*52', u'14*', u'16*',"", "" ,"",...]
  </code></pre>
  
  <p>It basically contains, <code>float</code>, <code>unicodes</code> and <code>blank(string?)</code>. (It could have other data types as well)</p>
  
  <p>My objective is to remove any item which are not convertible to integer from the list.</p>
  
  <p>I have tried using <code>.isdigit()</code> like this: </p>
  
  <pre><code>newlist= [i for i in mylist if i.isdigit()]
  </code></pre>
  
  <p>but I ended up having <code>AttributeError</code>:</p>
  
  <pre><code>AttributeError: 'float' object has no attribute 'isdigit'
  </code></pre>
  
  <p>What would be a clean and neat way (without using too many if/else or try/except clauses) to achieve this?</p>
  
  <p>I am using python 2.7</p>