title: Why use isinstance() instead of type()?
body: <p>I've seen people often recommend using isinstance() instead of type(), which I find odd because type() seems more readable to me.</p>
  
  <pre><code>&gt;&gt;&gt; isinstance("String",str)
  True
  &gt;&gt;&gt; type("String") is str
  True
  </code></pre>
  
  <p>The latter seems more pythonic and clear while the former is slightly obfuscated and implies a specific use to me (for example, testing user built classes rather than built in types) but is there some other benefit that I'm unaware of? Does type() cause some erratic behaviour or miss some comparisons?</p>