What\'s the difference between:
isinstance(foo, types.StringType)
and
isinstance(foo, basestring)
?
This stuff is completely different in Python3
types not longer has StringType str is always unicode basestring no longer exists
types
StringType
str
basestring
So try not to sprinkle that stuff through your code too much if you might ever need to port it