We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.



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.)