basestring¶
Description¶
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.
Syntax¶
basestring()
Return Value¶
#TODO
Time Complexity¶
#TODO
Example¶
>>> isinstance('hello', basestring)
True
>>> isinstance(u'hello', basestring)
True
See Also¶
#TODO