title: How can I check if a string represents an int, without using try/except?
body: <p>Is there any way to tell whether a <strong>string</strong> represents an integer (e.g., <code>'3'</code>, <code>'-17'</code> but not <code>'3.14'</code> or <code>'asfasfas'</code>) Without using a try/except mechanism?</p>
  <pre class="lang-py prettyprint-override"><code>is_int('3.14') == False
  is_int('-7')   == True
  </code></pre>