title: Difference in python between basestring and types.StringType?
body: <p>What's the difference between:</p>
  
  <pre><code>isinstance(foo, types.StringType)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>isinstance(foo, basestring)
  </code></pre>
  
  <p>?</p>