What\'s the difference between:
isinstance(foo, types.StringType)
and
isinstance(foo, basestring)
?
>>> import types >>> isinstance(u'ciao', types.StringType) False >>> isinstance(u'ciao', basestring) True >>>
Pretty important difference, it seems to me;-).