where are isinstance types documented?

Simon Brunning simon at brunningonline.net
Tue Sep 26 06:10:42 EDT 2006


On 26 Sep 2006 02:59:07 -0700, codefire <tony.bedford at gmail.com> wrote:
> I'm using the isinstance built-in function. I've found the docs for it,
> but there are no docs on the supported types.
>
> For example isinstance(a, int) works fine but isinstance(s, string)
> doesn't - because 'string is not known'.

In this case, you want "str" rather than "string".

I can't find a single page with a list of built-in types (which
doesn't mean that one doesn't exist) but I think you can find them all
hanging off this page: <http://docs.python.org/lib/types.html>.

-- 
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list