title: How to determine if a number is any type of int (core or numpy, signed or not)?
body: <p>I need to test whether a variable is of type <code>int</code>, or any of <code>np.int*</code>, <code>np.uint*</code>, preferably using a single condition (<em>i.e.</em> no <code>or</code>).</p>
  
  <p>After some tests, I guess that:</p>
  
  <ul>
  <li><code>isinstance(n, int)</code> will only match <code>int</code> and <code>np.int32</code> (or <code>np.int64</code> depending on plateform),</li>
  <li><code>np.issubdtype(type(n), int)</code> seems to match all <code>int</code> and <code>np.int*</code>, but doesn’t match <code>np.uint*</code>. </li>
  </ul>
  
  <p>This leads to two questions: will <code>np.issubdtype</code> match <strong>any</strong> kind of signed ints? Can determine in a single check whether a number is any kind of signed or unsigned int?</p>
  
  <p>This is about testing for <strong>integers</strong>, the test should return <code>False</code> for float-likes. </p>