where are isinstance types documented?

Fredrik Lundh fredrik at pythonware.com
Tue Sep 26 06:32:13 EDT 2006


Fredrik Lundh wrote:

> Sequences:
>      str
>      unicode

footnote: to simplify, there's also a "basestring" base class that can 
be used to check for either str or unicode:

     isinstance(obj, basestring)

is equivalent to

     isinstance(obj, (str, unicode))

</F>




More information about the Python-list mailing list