codefire enlightened us with: > I'm using the isinstance built-in function. I've found the docs for > it, but there are no docs on the supported types.
All types/classes are supported. > For example isinstance(a, int) works fine but isinstance(s, string) > doesn't - because 'string is not known'. That is because 'string' is not a class: print "abc".__class__.__name__ The name is 'str', not 'string'. Sybren -- Sybren Stüvel Stüvel IT - http://www.stuvel.eu/ -- http://mail.python.org/mailman/listinfo/python-list