title: How do I check if a number is a 32-bit integer using Python?
body: <p>In my program I'm looking at a string and I want to know if it represents a 32-bit integer.</p>
  
  <p>Currently I first check if it is a digit at all using <code>isdigit()</code>, then I check if it exceeds the value of 2^32  (assuming I don't care about unsigned values).</p>
  
  <p>What's the best way to check that my input string contains a valid 32-bit integer?</p>