Difference in python between basestring and types.StringType?
<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>

<p>Thanks,
/YGA</p>

<p>PS I know I shouldn't use <code>isinstance</code> at all, blah blah blah.</p>
