basestring()
This abstract type is the superclass for
str and unicode. It cannot be called
or instantiated, but it can be used to test whether an object is an
instance of str or unicode. isinstance(obj,
basestring) is equivalent to isinstance(obj, (str,
unicode)). (New in version 2.3.)