Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 457 Bytes

File metadata and controls

30 lines (24 loc) · 457 Bytes

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