[EMAIL PROTECTED] wrote: > Maybe this helps: > > >>> import types > >>> def foo(inputVal): > inValType = type(inputVal) > if inValType==types.ListType or inValType==types.TupleType:
And what of user-created types that are iterable? What of user-created iterable types that don't inherit from any of the built-in iterable types? -- \ "A good politician is quite as unthinkable as an honest | `\ burglar." -- Henry L. Mencken | _o__) | Ben Finney -- http://mail.python.org/mailman/listinfo/python-list