def is_iterable(var):

    return (isinstance(var, (list, tuple)) or
        issubclass(var.__class__, (list, tuple)))
Return True if the given is list or tuple.
dataset/ETHPy150Open Havate/havate-openstack/proto-build/gui/horizon/Horizon_GUI/openstack_dashboard/api/ceilometer.py/is_iterable