def is_iterable(obj):
    try:
        iter(obj)
        return True
    except TypeError:
        return False

Is there a better way?

-- 
Neil Cerutti
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to