On 26 Sep 2006 02:59:07 -0700, codefire <[EMAIL PROTECTED]> 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, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.python.org/mailman/listinfo/python-list